graphlow.configure_logging#
- graphlow.configure_logging(level: int | str | None = None, config_file: str | Path | None = None) None#
Load bundled logging settings so
graphlowlog messages are easy to read.Call this from a small script when you want console output without writing a
loggingconfiguration yourself. It is not required for using the library, and production code should usually set uplogging(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
graphlowlogger).- Parameters:
- levelint or str, optional
Override level for the
graphlowlogger after loading config (e.g.logging.DEBUGor"DEBUG").- config_filestr or Path, optional
Path to a custom logging config file (e.g. for fileConfig). If None, the bundled
utils/logging.confis used.
- Returns:
- None
Examples
>>> import graphlow >>> graphlow.configure_logging(level="DEBUG")