Toggleable structured logger for LLM calls.
Usage
LLMUtils.Logging.enable()
LLMUtils.Logging.log(:info, "message", provider: "openai")
LLMUtils.Logging.disable()Override by passing a module with the same interface in Client options.
Note: Call require LLMUtils.Logging before using log/3 in modules
that don't already require Logger.
Summary
Functions
Disable logging.
Enable logging.
Check if logging is enabled.
Log a message if logging is enabled.
Functions
@spec disable() :: :ok
Disable logging.
@spec enable() :: :ok
Enable logging.
@spec enabled?() :: boolean()
Check if logging is enabled.
@spec log(Logger.level(), String.t(), keyword()) :: :ok
Log a message if logging is enabled.