sgn.logger
¶
Logging utilities and configuration for SGN.
configure_sgn_logging()
¶
Configure SGN logging with handlers and environment-based levels.
Environment Variables
SGNLOGLEVEL: Space-separated list of logger configurations in format: - "LEVEL" (applies to the main logger) - "logger_name:LEVEL" (applies to specific child logger)
Examples:
SGNLOGLEVEL="DEBUG" -> Sets main logger to DEBUG level SGNLOGLEVEL="pipeline:INFO subprocess:WARNING" -> Sets specific loggers
Source code in src/sgn/logger.py
setup_custom_levels()
¶
Set up SGN's custom logging levels.
This function registers custom logging levels like MEMPROF with Python's logging system. This function is idempotent - safe to call multiple times.