Skip to content

Yet another logger

Mateusz Żebrak requested to merge mzebrak/logger into develop

Requires: !51 (merged)

Adds a new "logger" which wraps both loguru and textual loggers. This allows us for sending log messages to both places.

Instead of:

from textual import log
from loguru import logger

log.debug("Something")  # Logs to textual console
logger.debug("Something")  # Logs to the log file

We can do:

from clive.logger import logger

logger.debug("Something")  # Logs to both textual console and log file

Merge request reports

Loading