Changeset 6583
- Timestamp:
- Mar 23, 2009, 2:49:18 PM (15 years ago)
- Location:
- anuga_core/source/anuga/utilities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/log.py
r6582 r6583 21 21 import sys 22 22 import os 23 #import os.path24 23 import sys 25 24 import traceback … … 29 28 ################################################################################ 30 29 # Module variables - only one copy of these, ever. 30 # 31 # The console logging level is set to a high level, like CRITICAL. The logfile 32 # logging is set lower, between DEBUG and CRITICAL. The idea is to log least to 33 # the console, but ensure that everything that goes to the console *will* also 34 # appear in the log file. There is code to ensure log <= console levels. 31 35 ################################################################################ 32 36 … … 35 39 36 40 # logging level for the console 37 console_logging_level = logging. INFO41 console_logging_level = logging.CRITICAL 38 42 39 43 # logging level for the logfile 40 log_logging_level = logging. DEBUG44 log_logging_level = logging.INFO 41 45 42 # The nat_log.pye of the file to log to.46 # The default name of the file to log to. 43 47 log_filename = './anuga.log' 44 48 -
anuga_core/source/anuga/utilities/test_log.py
r6578 r6583 22 22 log.log_filename = LOGFILE_NAME 23 23 24 # set logging levels for this test 25 log.console_logging_level = logging.INFO 26 log.log_logging_level = logging.DEBUG 27 24 28 def tearDown(self): 25 29 if os.path.exists(LOGFILE_NAME): … … 31 35 ## 32 36 # @brief Test the logging routines. 33 # @note HAVE ONE TEST CASE ONLY! 37 # @note HAVE ONE TEST CASE ONLY! Multiple tests would concatenate 38 # multiple test output in one log file. 34 39 def test_simple(self): 35 40 '''Check that logging works in simple case.'''
Note: See TracChangeset
for help on using the changeset viewer.