Logging¶
grid_doctor provides a small logging helper so applications and scripts
can configure a consistent logging setup without repeating boilerplate.
Logging setup¶
Use this function to initialize logging for interactive use, scripts, or batch workflows.
setup_logging(verbosity=0, level=None, fmt=_DEFAULT_FORMAT, datefmt=_DEFAULT_DATE_FORMAT)
¶
Configure the root handler and set the global log level.
Call this once at program startup.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
verbosity
|
int
|
Number of |
0
|
level
|
int, str, or None
|
Explicit level — overrides verbosity when given. |
None
|
fmt
|
str
|
:mod: |
_DEFAULT_FORMAT
|
datefmt
|
str
|
Date format string. |
_DEFAULT_DATE_FORMAT
|