Changes between Initial Version and Version 2 of Ticket #309


Ignore:
Timestamp:
Apr 2, 2009, 11:09:35 AM (15 years ago)
Author:
rwilson
Comment:

A simple module to cater for ANUGA logging has been written at anuga_core/utilities/log.py.

This allows logging to the screen and a logfile, with different loglevels for the screen and logfile. The logfile logging level is forced to be at a lower or equal logging level that that used for the screen, ensuring that anything logged to the screen also goes into the logfile.

An attempt has been made to also write the calling module name and linenumber into the logfile. This only works under python 2.5 or later and fails silently if running earlier versions. This feature works in the test case, but gives wrong information in the real code.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #309

    • Property Status changed from new to assigned
    • Property Type changed from defect to enhancement
  • Ticket #309 – Description

    initial v2  
    22
    33See e.g. http://72.14.235.132/search?q=cache:NlCkPdW3rHwJ:blog.tplus1.com/index.php/2007/09/28/the-python-logging-module-is-much-better-than-print-statements/+logging+Python&hl=en&ct=clnk&cd=6&gl=au
     4