cashocs.log#

Logging for cashocs.

Functions

add_handler(handler)

Adds an additional handler to the logger.

add_logfile(filename[, mode, level])

Adds a file handler to the logger.

add_timestamps()

This function adds a time stamp to the logged events.

begin(message[, level])

This signals the beginning of a (timed) block of logs.

critical(message)

Issues a message at the critical level.

debug(message)

Issues a message at the debug level.

end()

This signals the end of a block started with cashocs.log.begin().

error(message)

Issues a message at the error level.

info(message)

Issues a message at the info level.

remove_timestamps()

This method removes the time stamp from the logged events.

set_log_level(level)

This method sets the log level of the default handler, i.e., the console.

warning(message)

Issues a message at the warning level.

Classes

LogLevel()

Stores the various log levels of cashocs.

Logger(name)

Base class for logging.