grapa.shared.logging_utils.setup_logging

grapa.shared.logging_utils.setup_logging()

Configure Grapa logging with a file handler and stdout fallback.

Attempts to log to the package directory first, then a user cache path, and finally stdout. Adds a StreamHandler to the ‘grapa’ logger if missing.

Returns:

logging.Handler | None: The StreamHandler for the package logger, or None if a handler could not be added.