See http://httpd.apache.org/docs/2.0/logs.html#combined for format details
(self, resp, req, environ, request_time)
| 354 | ) |
| 355 | |
| 356 | def access(self, resp, req, environ, request_time): |
| 357 | """ See http://httpd.apache.org/docs/2.0/logs.html#combined |
| 358 | for format details |
| 359 | """ |
| 360 | |
| 361 | if not self.access_log_enabled: |
| 362 | return |
| 363 | |
| 364 | # wrap atoms: |
| 365 | # - make sure atoms will be test case insensitively |
| 366 | # - if atom doesn't exist replace it by '-' |
| 367 | safe_atoms = self.atoms_wrapper_class( |
| 368 | self.atoms(resp, req, environ, request_time) |
| 369 | ) |
| 370 | |
| 371 | try: |
| 372 | self.access_log.info(self.cfg.access_log_format, safe_atoms) |
| 373 | except Exception: |
| 374 | self.error(traceback.format_exc()) |
| 375 | |
| 376 | def now(self): |
| 377 | """ return date in Apache Common Log Format """ |