# `paste.translogger` – Log requests

Middleware for logging requests, using Apache combined log format

## Module Contents

class paste.translogger.TransLogger(application, logger=None, format=None, logging_level=20, logger_name='wsgi', setup_console_handler=True, set_logger_level=10, time_format=None)

  This logging middleware will log all requests as they go through. They are, by default, sent to a logger named `'wsgi'` at the INFO level.

  If `setup_console_handler` is true, then messages for the named logger will be sent to the console.

  To adjust the format of the timestamp in the log, provide a strftime format string to the `time_format` keyword argument. Otherwise `default_time_format` will be used.

paste.translogger.make_filter(app, global_conf, logger_name='wsgi', format=None, logging_level=20, setup_console_handler=True, set_logger_level=10)

  This logging middleware will log all requests as they go through. They are, by default, sent to a logger named `'wsgi'` at the INFO level.

  If `setup_console_handler` is true, then messages for the named logger will be sent to the console.

  To adjust the format of the timestamp in the log, provide a strftime format string to the `time_format` keyword argument. Otherwise `default_time_format` will be used.