edges_io.logging.ColoredLogger#

class edges_io.logging.ColoredLogger(name)[source]#

Methods

__init__(name)

Initialize the logger with a name and an optional level.

addFilter(filter)

Add the specified filter to this handler.

addHandler(hdlr)

Add the specified handler to this logger.

callHandlers(record)

Pass a record to all relevant handlers.

critical(msg, *args, **kwargs)

Log 'msg % args' with severity 'CRITICAL'.

debug(msg, *args, **kwargs)

Log 'msg % args' with severity 'DEBUG'.

error(msg, *args, **kwargs)

Log 'msg % args' with severity 'ERROR'.

exception(msg, *args[, exc_info])

Convenience method for logging an ERROR with exception information.

fatal(msg, *args, **kwargs)

Don't use this method, use critical() instead.

filter(record)

Determine if a record is loggable by consulting all the filters.

findCaller([stack_info, stacklevel])

Find the stack frame of the caller so that we can note the source file name, line number and function name.

getChild(suffix)

Get a logger which is a descendant to this one.

getEffectiveLevel()

Get the effective level for this logger.

handle(record)

Call the handlers for the specified record.

hasHandlers()

See if this logger has any handlers configured.

info(msg, *args, **kwargs)

Log 'msg % args' with severity 'INFO'.

isEnabledFor(level)

Is this logger enabled for level 'level'?

log(level, msg, *args, **kwargs)

Log 'msg % args' with the integer severity 'level'.

makeRecord(name, level, fn, lno, msg, args, ...)

A factory method which can be overridden in subclasses to create specialized LogRecords.

removeFilter(filter)

Remove the specified filter from this handler.

removeHandler(hdlr)

Remove the specified handler from this logger.

setLevel(level)

Set the logging level of this logger.

success(msg, *args, **kwargs)

warn(msg, *args, **kwargs)

warning(msg, *args, **kwargs)

Log 'msg % args' with severity 'WARNING'.

Attributes