cligram.logger

Logger setup with colored logger names using Rich markup.

class cligram.logger.ColoredNameFormatter(fmt=None, datefmt=None, style='%')[source]

Bases: Formatter

Logging formatter with colored logger names using Rich markup.

format(record)[source]

Format the log record with colored logger name.

cligram.logger.setup_logger()[source]

Set up the main logger with file handler.