langgraph_agent_toolkit.helper.logging module
- class langgraph_agent_toolkit.helper.logging.DuplicateFilter[source][source]
Bases:
objectFilter duplicate log messages.
- class langgraph_agent_toolkit.helper.logging.Formatter(debug=False)[source][source]
Bases:
objectFormat log messages by log level.
Initialize the formatter.
- Parameters:
debug (bool) – Use the detailed format with function and line data.
- class langgraph_agent_toolkit.helper.logging.SingletonMeta[source][source]
Bases:
typeCreate one LoggerConfig instance.
- class langgraph_agent_toolkit.helper.logging.LoggerConfig(*args, **kwargs)[source][source]
Bases:
objectConfigure and manage the singleton logger.
- WARN_ONCE_NO = 25
- DEPRECATED_NO = 26
- configure_file_logging(log_file)[source][source]
Add file logging to the logger configuration.
- Parameters:
log_file (str) – Log file path.
- Return type:
None
- property logger
Get the configured logger.
- Returns:
Configured logger.
- Return type:
loguru_logger
- langgraph_agent_toolkit.helper.logging.warn_once(message, *args, **kwargs)[source][source]
Log a warning message once.
- Parameters:
message (str) – Warning message.
*args – Positional arguments.
**kwargs – Keyword arguments.
- langgraph_agent_toolkit.helper.logging.log_deprecated(message, *args, **kwargs)[source][source]
Log a deprecation warning.
- Parameters:
message (str) – Deprecation message.
*args – Positional arguments.
**kwargs – Keyword arguments.