Flo-AI
  • 🚀Welcome to FloAI
  • Getting Started
    • Quickstart
    • Core Concepts
  • Basics
    • Agents
    • Tools
    • Routers
    • Teams
    • Flo-AI RAGs
    • Composability
    • YAML Configuration
  • Advanced
    • Multi-model Agents
    • Listeners
    • Logging
  • Guides
    • Jupyter Notebooks
    • Blogs
Powered by GitBook
On this page

Was this helpful?

  1. Advanced

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)
PreviousListenersNextJupyter Notebooks

Last updated 5 months ago

Was this helpful?