The horizon.middleware.operation_log ModuleΒΆ

class horizon.middleware.operation_log.OperationLogMiddleware[source]

Bases: object

Middleware to output operation log.

This log can includes information below.
<domain name>, <domain id> <project name>, <project id> <user name>, <user id> <request scheme>, <referer url>, <request url> <message>, <method>, <http status> <request parameters>

And log format is defined OPERATION_LOG_OPTIONS.

OPERATION_LOG[source]
process_exception(request, exception)[source]

Log error info when exception occurred.

process_response(request, response)[source]

Log user operation.

Previous topic

The horizon.utils.html Module

Next topic

The horizon.middleware.base Module

Project Source

This Page