Changeset 6646 for anuga_core/source/anuga/utilities/log.py
- Timestamp:
- Mar 27, 2009, 3:11:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/log.py
r6638 r6646 7 7 Use it this way: 8 8 import anuga.utilities.log as log 9 log.console_logging_level = log.DEBUG 9 10 log.debug('A message at DEBUG level') 10 11 log.info('Another message, INFO level') … … 47 48 log_filename = './anuga.log' 48 49 50 # set module variables so users don't have to do 'import logging'. 51 CRITICAL = logging.CRITICAL 52 ERROR = logging.ERROR 53 WARNING = logging.WARNING 54 INFO = logging.INFO 55 DEBUG = logging.DEBUG 56 NOTSET = logging.NOTSET 57 49 58 50 59 ################################################################################ … … 85 94 86 95 # tell the world how we are set up 87 start_msg = (" \nLogfile is '%s' with logging level of %s, "96 start_msg = ("Logfile is '%s' with logging level of %s, " 88 97 "console logging level is %s" 89 98 % (log_filename,
Note: See TracChangeset
for help on using the changeset viewer.