Changeset 6583


Ignore:
Timestamp:
Mar 23, 2009, 2:49:18 PM (15 years ago)
Author:
rwilson
Message:

Changed default logging levels.

Location:
anuga_core/source/anuga/utilities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/log.py

    r6582 r6583  
    2121import sys
    2222import os
    23 #import os.path
    2423import sys
    2524import traceback
     
    2928################################################################################
    3029# 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.
    3135################################################################################
    3236
     
    3539
    3640# logging level for the console
    37 console_logging_level = logging.INFO
     41console_logging_level = logging.CRITICAL
    3842
    3943# logging level for the logfile
    40 log_logging_level = logging.DEBUG
     44log_logging_level = logging.INFO
    4145
    42 # The nat_log.pye of the file to log to.
     46# The default name of the file to log to.
    4347log_filename = './anuga.log'
    4448
  • anuga_core/source/anuga/utilities/test_log.py

    r6578 r6583  
    2222        log.log_filename = LOGFILE_NAME
    2323
     24        # set logging levels for this test
     25        log.console_logging_level = logging.INFO
     26        log.log_logging_level = logging.DEBUG
     27
    2428    def tearDown(self):
    2529        if os.path.exists(LOGFILE_NAME):
     
    3135    ##
    3236    # @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.
    3439    def test_simple(self):
    3540        '''Check that logging works in simple case.'''
Note: See TracChangeset for help on using the changeset viewer.