Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
 class CustomLogger(AwareLogger):
     OOPS = LogLevel(43, 'OOPS')
     oops = log_method_factory('oops', OOPS, traceback=True)
Ejemplo n.º 3
0
 class CustomLogger(AwareLogger):
     BLERG = LogLevel(42, 'BLERG')
     blerg = log_method_factory('blerg', BLERG)