objwatch.utils.logger module¶
- objwatch.utils.logger.create_logger(name: str = 'objwatch', output: str | None = None, level: int | str = 10, simple: bool = False) None[source]¶
Create and configure a logger.
- objwatch.utils.logger.get_logger() Logger[source]¶
Retrieve the configured logger.
- Returns:
The logger instance.
- Return type:
- objwatch.utils.logger.log_info(msg: str, *args: Any, **kwargs: Any) None[source]¶
Log an informational message or print it if FORCE is enabled.
- Parameters:
msg (
str) – The message to log.*args (
Any) – Variable length argument list.**kwargs (
Any) – Arbitrary keyword arguments.
- objwatch.utils.logger.log_debug(msg: str, *args: Any, **kwargs: Any) None[source]¶
Log a debug message or print it if FORCE is enabled.
- Parameters:
msg (
str) – The message to log.*args (
Any) – Variable length argument list.**kwargs (
Any) – Arbitrary keyword arguments.