Logs Module

Rotative logging manager used across all BinPan modules.

Logging functions

Classes:

LogManager(filename[, name, folder, ...])

Main logging class.

class LogManager(filename: str, name: str = None, folder: str = 'logs', info_level='DEBUG', max_log_size_mb: int = 10, backup_count: int = 5)[source]

Main logging class.

Methods:

debug(msg)

DEBUG Method

info(msg)

INFO Method

warning(msg)

WARNING Method

error(msg)

ERROR Method

critical(msg)

CRITICAL Method

read_last_lines(num_lines)

debug(msg)[source]

DEBUG Method

info(msg)[source]

INFO Method

warning(msg)[source]

WARNING Method

error(msg)[source]

ERROR Method

critical(msg)[source]

CRITICAL Method

read_last_lines(num_lines)[source]