loki.logging

Loki’s logger classes and logging utilities.

Functions

FileLogger(name, filename[, level, ...])

Logger that emits to a single logfile, as well as stdout/stderr.

debug(msg, *args, **kwargs)

error(msg, *args, **kwargs)

info(msg, *args, **kwargs)

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

Wrapper of the main Python's logging function.

perf(msg, *args, **kwargs)

set_log_level(level)

Set the log level for the Loki logger.

warning(msg, *args, **kwargs)

set_log_level(level)

Set the log level for the Loki logger.

FileLogger(name, filename, level=None, file_level=None, fmt=None, mode='a')

Logger that emits to a single logfile, as well as stdout/stderr.

debug(msg, *args, **kwargs)
info(msg, *args, **kwargs)
warning(msg, *args, **kwargs)
error(msg, *args, **kwargs)
log(msg, level, *args, **kwargs)

Wrapper of the main Python’s logging function. Print ‘msg % args’ with the severity ‘level’.

Parameters:

msg – the message to be printed.