Creates a new Logger with the given debug level. If
level is BODY, max_body_size gives the maximum
number of bytes of the body that will be logged. (-1 means "no limit".)
Sets up a filter to determine the log level for a given request. For each HTTP request logger
will invoke request_filter to determine how much (if any) of that request to log. (If you do not set a request
filter, logger will just always log requests at the level passed to
Logger.)
Sets up a filter to determine the log level for a given response. For each HTTP response logger
will invoke response_filter to determine how much (if any) of that response to log. (If you do not set a response
filter, logger will just always log responses at the level passed to
Logger.)