Changes between Version 2 and Version 3 of Ticket #34236


Ignore:
Timestamp:
Dec 31, 2022, 10:21:57 AM (23 months ago)
Author:
Derek
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34236 – Description

    v2 v3  
    66I think the documentation should say that once in production with Gunnicorn, there are no access logs with INFO status from the Django logger.
    77
    8 My logging configuration is as follow:
     8My logging configuration in settings.py is as follow:
    99
    1010
    1111{{{
     12
     13#LOGGING SETTINGS
     14LOG_MAX_SIZE = int(os.getenv("LOG_MAX_SIZE")) #max size of single log file in bytes
     15LOG_NUMBER_OF_FILES = int(os.getenv("LOG_NUMBER_OF_FILES")) #number of old log files
     16LOG_LOCATION = os.getenv("LOG_LOCATION") #default name and location of a log file
     17LOG_LEVEL = os.getenv("LOG_LEVEL")
     18
    1219LOGGING = {
    1320    'version': 1,  # the dictConfig format version
     
    3946    },
    4047}}}
     48
     49.env file has the following entries:
     50
     51
     52{{{
     53#LOGGING SETTINGS
     54LOG_MAX_SIZE = 52428800 #max size of single log file in bytes
     55LOG_NUMBER_OF_FILES = 5 #number of old log files
     56LOG_LOCATION = '/logs/rotatingLog.log' #default name and location of a log file
     57LOG_LEVEL = 'INFO' #Log level to be collected through all django loggers - options include: DEBUG, INFO, WARNING, ERROR, CRITICAL
     58}}}
     59
     60
Back to Top