Skip to content

Logging Utils

Defines utility functions for logging configuration.

suppress_build_invoker_logs()

Suppress INFO logs from build-invoker helpers.

This function adds a filter directly to the logger to suppress the "Building ..." log messages that are emitted when model invokers are being built. This is useful when you want cleaner output without these verbose build messages.

This function works without modifying gllm-core by directly accessing the Python logging system. It adds the filter to: 1. The specific logger itself 2. All handlers of the specific logger 3. All handlers of the root logger (so the filter applies even if the logger is created later)

Example
from gllm_evals.utils.logging_utils import suppress_build_invoker_logs

suppress_build_invoker_logs()
# Now build invoker logs will be suppressed