Logger
psengine.logger.rf_logger.RFLogger
¶
RFLogger(
output: str = DEFAULT_PSENGINE_OUTPUT,
root_output: str = DEFAULT_ROOT_OUTPUT,
level: int = INFO,
propagate: bool = True,
to_file: bool = True,
to_console: bool = True,
console_is_root: bool = True,
)
Sets up logging and gives access to its functions.
Sets up console and/or file-based logging under a structured directory layout.
PARAMETER | DESCRIPTION |
---|---|
output
|
Subdirectory name to use for output (e.g.,
TYPE:
|
root_output
|
Root directory path for all output files.
TYPE:
|
level
|
Logging level (e.g., logging.INFO, logging.DEBUG).
TYPE:
|
propagate
|
Whether logs should propagate to parent loggers.
TYPE:
|
to_file
|
Enable logging to a file.
TYPE:
|
to_console
|
Enable logging to the console.
TYPE:
|
console_is_root
|
Set console logger as root logger.
TYPE:
|