Answers for "error.log file"

2

python log file

import logging
logging.basicConfig(filename='example.log', encoding='utf-8', level=logging.DEBUG)
logging.debug('This message should go to the log file')
logging.info('So should this')
logging.warning('And this, too')
logging.error('And non-ASCII stuff, too, like Øresund and Malmö')
Posted by: Guest on June-14-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 "error.log file"

Python Answers by Framework

Browse Popular Code Answers by Language