File: logging.rst

package info (click to toggle)
thumbor 7.7.7-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 40,528 kB
  • sloc: xml: 295,435; python: 18,668; ansic: 1,479; makefile: 360; sh: 27
file content (25 lines) | stat: -rw-r--r-- 592 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Logging
=======

thumbor uses the built-in Python logging mechanisms. In order to
configure log-level check the :doc:`running` page.

Configuring log format
----------------------

Configuring the log format is as easy as including these keys in your
``thumbor.conf`` file:

THUMBOR\_LOG\_FORMAT
~~~~~~~~~~~~~~~~~~~~

Log Format to be used by thumbor when writing log messages.

*Defaults to*: %(asctime)s %(name)s:%(levelname)s %(message)s

THUMBOR\_LOG\_DATE\_FORMAT
~~~~~~~~~~~~~~~~~~~~~~~~~~

Date Format to be used by thumbor when writing log messages.

*Defaults to*: %Y-%m-%d %H:%M:%S