Changes between Version 2 and Version 3 of Ticket #34236
- Timestamp:
- Dec 31, 2022, 10:21:57 AM (23 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34236 – Description
v2 v3 6 6 I think the documentation should say that once in production with Gunnicorn, there are no access logs with INFO status from the Django logger. 7 7 8 My logging configuration i s as follow:8 My logging configuration in settings.py is as follow: 9 9 10 10 11 11 {{{ 12 13 #LOGGING SETTINGS 14 LOG_MAX_SIZE = int(os.getenv("LOG_MAX_SIZE")) #max size of single log file in bytes 15 LOG_NUMBER_OF_FILES = int(os.getenv("LOG_NUMBER_OF_FILES")) #number of old log files 16 LOG_LOCATION = os.getenv("LOG_LOCATION") #default name and location of a log file 17 LOG_LEVEL = os.getenv("LOG_LEVEL") 18 12 19 LOGGING = { 13 20 'version': 1, # the dictConfig format version … … 39 46 }, 40 47 }}} 48 49 .env file has the following entries: 50 51 52 {{{ 53 #LOGGING SETTINGS 54 LOG_MAX_SIZE = 52428800 #max size of single log file in bytes 55 LOG_NUMBER_OF_FILES = 5 #number of old log files 56 LOG_LOCATION = '/logs/rotatingLog.log' #default name and location of a log file 57 LOG_LEVEL = 'INFO' #Log level to be collected through all django loggers - options include: DEBUG, INFO, WARNING, ERROR, CRITICAL 58 }}} 59 60