Merge flash log and gunicorn log
logging
The logging framework is mainly composed of four parts:
Loggers: interfaces that can be called directly by programsHandlers: decide to assign log records to the correct destinationFilters: provides a more granular judgment of whether the log is outputFormatters: make the format layout of final record printing
Logging is introduced as ...
Posted by newbieaj on Tue, 01 Mar 2022 04:23:29 +0100
python elegant output log
Explanation:
I When using the logging module When writing code in python, the basic lines of the logging module are configured as follows:
import logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
logger.info('this is another debug message')
logg ...
Posted by werushka on Sat, 08 Jan 2022 13:59:32 +0100