cpl.logging¶
cpl.logging.logger_abc module¶
-
class
cpl.logging.logger_abc.
LoggerABC
¶ Bases:
abc.ABC
-
abstract
debug
(name: str, message: str)¶ Writes a debug message :param name: :param message: :return:
-
abstract
error
(name: str, message: str, ex: Optional[Exception] = None)¶ Writes an error :param name: :param message: :param ex: :return:
-
abstract
fatal
(name: str, message: str, ex: Optional[Exception] = None)¶ Writes an error and exits :param name: :param message: :param ex: :return:
-
abstract
header
(string: str)¶ Writes a header message :param string: :return:
-
abstract
info
(name: str, message: str)¶ Writes an information :param name: :param message: :return:
-
abstract
trace
(name: str, message: str)¶ Writes a trace message :param name: :param message: :return:
-
abstract
warn
(name: str, message: str)¶ Writes an warning :param name: :param message: :return:
-
abstract
cpl.logging.logger_service module¶
-
class
cpl.logging.logger_service.
Logger
(logging_settings: cpl.logging.logging_settings.LoggingSettings, time_format: cpl.time.time_format_settings.TimeFormatSettings, env: cpl.environment.application_environment_abc.ApplicationEnvironmentABC)¶ Bases:
cpl.logging.logger_abc.LoggerABC
-
create
() → None¶ Creates path tree and logfile :return:
-
debug
(name: str, message: str)¶ Writes a debug message :param name: :param message: :return:
-
error
(name: str, message: str, ex: Optional[Exception] = None)¶ Writes an error :param name: :param message: :param ex: :return:
-
fatal
(name: str, message: str, ex: Optional[Exception] = None)¶ Writes an error and exits :param name: :param message: :param ex: :return:
-
header
(string: str)¶ Writes a header message :param string: :return:
-
info
(name: str, message: str)¶ Writes an information :param name: :param message: :return:
-
trace
(name: str, message: str)¶ Writes a trace message :param name: :param message: :return:
-
warn
(name: str, message: str)¶ Writes an warning :param name: :param message: :return:
-