zbxepics.logging¶
Logger¶
-
class
zbxepics.logging.logger.
Logger
¶ Bases:
object
logging application log
-
logger
¶ logger object
Type: logging.Logger
-
CRITICAL
= 50¶
-
DEBUG
= 10¶
-
ERROR
= 40¶
-
INFO
= 20¶
-
LEVELS
= [0, 10, 20, 30, 40, 50]¶
-
NOTSET
= 0¶
-
WARNING
= 30¶
-
critical
(msg, *args, **kw)¶ Log ‘msg % args’ with severity ‘CRITICAL’.
Notes
To pass exception information, use the keyword argument exc_info with a true value.
-
debug
(msg, *args, **kw)¶ Log ‘msg % args’ with severity ‘DEBUG’.
Notes
To pass exception information, use the keyword argument exc_info with a true value.
-
error
(msg, *args, **kw)¶ Log ‘msg % args’ with severity ‘ERROR’.
Notes
To pass exception information, use the keyword argument exc_info with a true value.
-
info
(msg, *args, **kw)¶ Log ‘msg % args’ with severity ‘INFO’.
Notes
To pass exception information, use the keyword argument exc_info with a true value.
-
log
(level, msg, *args, **kw)¶ Log ‘msg % args’ with the integer severity ‘level’.
Notes
To pass exception information, use the keyword argument exc_info with a true value.
-
set_config
(config_file)¶ Set configuration for logging from config file
Parameters: config_file (str or bool) – Path to config file to load settings from. If value is True then default config path will used.
-
set_level
(level)¶ Set the logging level of this logger
Parameters: level (int) – logging level
-
warning
(msg, *args, **kw)¶ Log ‘msg % args’ with severity ‘WARNING’.
Notes
To pass exception information, use the keyword argument exc_info with a true value.
-