Logging
Log what you need
The default log level for Flo is ERROR. You can change it using the following APIs:
Flo.set_log_level("INFO") # you can pass the log level to set it globallu
Or you can pass the config, to have file writing capabilities:
logging_config = FloLogConfig(
name="FloAI",
level="INFO",
file_path=<optionalpath to write logs>,
max_bytes=<maz bytes for file rotations>
)
set_log_config(logging_config)
Or you can completely use your logger:
# your own logger
set_logger(logger)
Last updated
Was this helpful?