Log Config
src.xil_pipeline.log_config
Logging configuration for the XIL pipeline CLI tools.
Each module obtains a logger via :func:get_logger::
from xil_pipeline.log_config import get_logger
logger = get_logger(__name__)
Each main() entry point calls :func:configure_logging once at
startup so that the root handler is installed before any output is
produced::
from xil_pipeline.log_config import configure_logging
def main():
configure_logging()
...
Output format by level:
DEBUG→[debug] <message>INFO→<message>(plain, same as a bareprint())WARNING→[!] <message>ERROR→[ERROR] <message>CRITICAL→[CRITICAL] <message>
Call configure_logging(logging.DEBUG) to enable verbose output.
configure_logging
Configure the root logger for CLI output.
Safe to call multiple times — only the first call installs the stdout handler. Subsequent calls may still update the log level.
Automatically tees output to logs/xil_YYYY-MM-DD.log in the
current working directory. The logs/ directory is created if it
does not exist.
Parameters:
-
level(int, default:INFO) –Logging level threshold (default:
logging.INFO). Passlogging.DEBUGto enable verbose output.
Source code in src/xil_pipeline/log_config.py
get_logger
Return a named logger, auto-configuring the root logger if needed.
Parameters:
-
name(str) –Logger name, typically
__name__of the calling module.
Returns:
-
A(Logger) –class:
logging.Loggerinstance.