Files
tryton-helpers/logging.conf
Blaž Bregar efd53e6c49 Add Trytond configuration and scripts for deployment
This commit introduces essential files and scripts for setting up a Trytond environment, including configuration, logging, systemd services, NGINX, and utility scripts for managing Trytond.
2025-12-24 17:05:10 +01:00

38 lines
876 B
Plaintext

[formatters]
keys: simple, default
[handlers]
keys: rotate, console, sentry
[loggers]
keys: root
[formatter_simple]
format: %(asctime)s] %(levelname)s:%(name)s:%(message)s
datefmt: %a %b %d %H:%M:%S %Y
[handler_rotate]
class: handlers.TimedRotatingFileHandler
args: ('/var/log/tryton/also60prod.log', 'D', 1, 30)
formatter: simple
[logger_root]
level: INFO
handlers: rotate, console, sentry
propagate: False
[formatter_default]
format=%(process)s %(thread)s [%(asctime)s] %(levelname)s %(name)s %(message)s
[handler_console]
level=INFO
class=logging.StreamHandler
args=(sys.stdout,)
formatter=default
[handler_sentry]
level=ERROR
class=sentry_tryton.SentryTrytonHandler
args=('https://28b6aa6a4ee7463faaab678f7e558d00@glitch.aklaro.si/2?verify_ssl=0', 'An error have been occurred.\nOur suport team have been reported.', 'Use "{event_id}" to reference this error.',)