class CustomLogger(AwareLogger): """ Logger with additional levels for auditing and debugging. """ # Log for changes that must be audited AUDIT = LogLevel(99, 'AUDIT') audit = log_method_factory('audit', AUDIT) # Log error messages with traceback FAIL = LogLevel(100, 'FAIL') fail = log_method_factory('fail', FAIL, traceback=True)
class CustomLogger(AwareLogger): OOPS = LogLevel(43, 'OOPS') oops = log_method_factory('oops', OOPS, traceback=True)
class CustomLogger(AwareLogger): BLERG = LogLevel(42, 'BLERG') blerg = log_method_factory('blerg', BLERG)