Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

LOGGING

import logging
LOG_FILENAME = 'example.log'
logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG)

logging.debug('This message should go to the log file')
Source by davis.lbl.gov #
 
PREVIOUS NEXT
Tagged: #LOGGING
ADD COMMENT
Topic
Name
2+8 =