Answers for "how to error log file in python"

PHP
9

making log files in python

import logging
logging.basicConfig(filename='example.log', encoding='utf-8', level=logging.DEBUG)
logging.debug('This is debug message')
logging.info('This is information message')
logging.warning('This is warning message')
logging.error('This is warning message')
Posted by: Guest on July-12-2021
0

output to log file and error to log error

./ShellFile.sh >& pathToLogFile.log
Posted by: Guest on November-19-2020

Code answers related to "how to error log file in python"

Browse Popular Code Answers by Language