Logging#

FlexEval uses Python’s logging.

If you’re using logging but you don’t want to see FlexEval’s logs:

import logging
# turn off all INFO and DEBUG log messages, but leave WARNING and ERROR messages
logging.getLogger('flexeval').setLevel(logging.WARNING)
# turn off all logging, including warnings and errors
logging.getLogger('flexeval').setLevel(logging.CRITICAL + 1)

The CLI has logging turned on by default.

If flexeval.schema.config_schema.Config.logs_path is set, logs will be written during eval execution.