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.
This commit is contained in:
37
logging.conf
Normal file
37
logging.conf
Normal file
@@ -0,0 +1,37 @@
|
||||
[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.',)
|
||||
|
||||
Reference in New Issue
Block a user