"""ctxlog - A structured logging library for Python.This library provides a structured logging system with context-rich logs,multiple output handlers, and support for traditional log levels."""from.configimport_global_config,configure# noqa: F401from.handlersimportConsoleHandler,FileHandler,FileRotation,Handlerfrom.levelimportLevelSpec,LevelStr,LogLevelfrom.logimportLogfrom.loggerimportLogger
[docs]defget_logger(name:str)->Logger:"""Get a logger for a module or class. Args: name: The name of the logger, typically __name__. Returns: A Logger instance. Example: ```python logger = ctxlog.get_logger(__name__) ``` """returnLogger(name)