graphlow.configure_logging#

graphlow.configure_logging(level: int | str | None = None, config_file: str | Path | None = None) None#

Load bundled logging settings so graphlow log messages are easy to read.

Call this from a small script when you want console output without writing a logging configuration yourself. It is not required for using the library, and production code should usually set up logging (or your framework’s logging) instead of relying on this helper.

Does not run on import so you call explicitly when you want this bundled behavior. If neither argument is given, loads the bundled default config (INFO for the graphlow logger).

Parameters:
levelint or str, optional

Override level for the graphlow logger after loading config (e.g. logging.DEBUG or "DEBUG").

config_filestr or Path, optional

Path to a custom logging config file (e.g. for fileConfig). If None, the bundled utils/logging.conf is used.

Returns:
None

Examples

>>> import graphlow
>>> graphlow.configure_logging(level="DEBUG")