pathpy / pathpyG

GPU-accelerated Next-Generation Network Analytics and Graph Learning for Time Series Data on Complex Networks.
https://www.pathpy.net
GNU Affero General Public License v3.0
33 stars 3 forks source link

add logging functionality (#32) #227

Closed hackl closed 1 week ago

hackl commented 1 week ago

Add functionality to log events in the console or in the .log file.

logger can be accessed via:

from pathpyG.utils.logger import logger
logger.info("Info Text")

or created by default logger module

import pathpyG as pp
import logging

logger = logging.getLogger("pathpyg")
logger.info("Info Text")

The default logger config is stored in the src pathpyG folder under logging.toml and can be replaced with a local logging.toml config in the working directory.