Skip to content

Log manager

Logging utilities for the MEF3 server.

mef3io_server.server.log_manager

setup_logging

setup_logging(log_dir, log_level=logging.INFO)

Setup logging with both file and console handlers.

Parameters:

Name Type Description Default
log_dir str

Directory to store log files.

required
log_level int

Logging level (e.g., logging.INFO, logging.DEBUG).

INFO

Returns:

Type Description
str

Path to the log file.

get_logger

get_logger(name: str)

Get a logger instance for the given name.

Parameters:

Name Type Description Default
name str

Name of the logger (typically module name).

required

Returns:

Type Description
Logger

Logger instance.