I am planning to add logging mechanism in my python&geodjango web service.
Is there log4j look a like logging mechanism in python/geodjango?
I am looking for log4j’s dailyrollingfileappender equivalent. Then automatically delete all 1month old log files.
Any guidance is appreciated.
UPDATES1
I am thinking of the below format.
datetime(ms)|log level|current thread name|client ip address|logged username|source file|source file line number|log message
Yes – Python 2.5 includes the ‘logging’ module. One of the handlers it supports is
handlers.TimedRotatingFileHandler, this is what you’re looking for. ‘logging’ is very easy to use:example:
The following is your config file for logging