Suggestions required for generating this logging file structure in django project
问题 Can anyone please suggest how to generate log files having following directory-file structure using python logging in django project. logs/2009-03-09 /errors.log /warnings.log /info.log /emails.log /messages.log logs/2009-03-08 /errors.log /warnings.log /info.log /emails.log /messages.log 回答1: Set up FileHandler instances with Filter instances which match the criteria for those files. Add the handlers to the root logger. Profit ;-) See this other answer for an example of a filter which