Logging
ALl the backend logs can be logged to below logging options with simple config
Local log storage
Edit the below configuration in development.env or production.env files for locally storing logs in server:
LOG_RETENTION = 7
LOG_LEVEL = "info"
LOG_FILE_SIZE = 1
LOG_RETENTIONdefines the days to store the logs.LOG_LEVELsupportserror, warning, success, infoLOG_FILE_SIZEdefines the size in MB of each log file.
Syslog
Edit the below configuration in development.env or production.env files for sending logs to remote syslog server:
SYSLOG_HOST = 127.0.0.1
SYSLOG_PORT = 514
SYSLOG_PROTOCOL = udp4
SYSLOG_LEVEL = "warning"
SYSLOG_PROTOCOLsupportstcp4, udp4SYSLOG_LEVELsupportserror, warning, success, info