Logger
* ApMon - Application Monitoring Tool
* Version: 2.2.0
Classes
Logger
class
Logger
# Simple logging class
__init__
(this, defaultLevel
=3
)
# Constructor
log
(this, level, message)
# Print the given message if the level is more serious as the existing one
setLogLevel
(this, strLevel)
# Set the logging level
Data
FATAL
= 0
ERROR
= 1
WARNING
= 2
INFO
= 3
NOTICE
= 4
DEBUG
= 5
LEVELS
= ['FATAL', 'ERROR', 'WARNING', 'INFO', 'NOTICE', 'DEBUG']