You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With logging levels set to INFO or higher, tornado logs an INFO message (to stderr by default) for every request, rapidly filling logfiles. This can be modified by overriding the settings to the tornado.access logger, or following the instructions in tornado/web.py method log_request:
The text was updated successfully, but these errors were encountered:
def log_request(self, handler):
"""Writes a completed HTTP request to the logs.
By default writes to the python root logger. To change
this behavior either subclass Application and override this method,
or pass a function in the application settings dictionary as
``log_function``.
"""
if "log_function" in self.settings:
self.settings["log_function"](handler)
return
if handler.get_status() < 400:
log_method = access_log.info
elif handler.get_status() < 500:
log_method = access_log.warning
else:
log_method = access_log.error
request_time = 1000.0 * handler.request.request_time()
log_method("%d %s %.2fms", handler.get_status(),
handler._request_summary(), request_time)
With logging levels set to INFO or higher, tornado logs an INFO message (to stderr by default) for every request, rapidly filling logfiles. This can be modified by overriding the settings to the tornado.access logger, or following the instructions in tornado/web.py method log_request:
The text was updated successfully, but these errors were encountered: