Skip to main content

Logging

Configure logging for debugging and monitoring.

Enable Debug Logging

How to activate detailed debug logs for Benchwise operations.

from benchwise import configure_benchwise

configure_benchwise(debug=True)

Environment Variable

Enable debug logging using an environment variable.

export BENCHWISE_DEBUG="true"

Custom Logging

Integrate Benchwise logging with your existing Python logging setup.

import logging

# Configure Python logging
logging.basicConfig(level=logging.DEBUG)

# Benchwise will use this configuration

Log Levels

Understanding the different levels of logging available in Benchwise.

  • DEBUG: Detailed diagnostic information
  • INFO: General informational messages (default)
  • WARNING: Warning messages
  • ERROR: Error messages

Example Output

Illustrative examples of Benchwise log messages.

INFO: Starting evaluation for gpt-4
DEBUG: Generating responses for 10 prompts
DEBUG: Received 10 responses in 5.2s
INFO: Evaluation completed successfully

See Also