Skip to content

Commit 9948224

Browse files
committed
Clarify logging configuration notes in RubyLLM setup to indicate that custom logger overrides log_file and log_level settings.
1 parent 3ee88cc commit 9948224

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ RubyLLM.configure do |config|
8686
# config.http_proxy = "socks5://proxy.company.com:1080" # SOCKS5 proxy
8787

8888
# --- Logging Settings ---
89-
# config.logger = Rails.logger # When set the file and level settings are not used.
89+
# config.logger = Rails.logger # NOTE: When set the log_file and log_level settings are not used.
9090
config.log_file = '/logs/ruby_llm.log'
9191
config.log_level = :debug # debug level can also be set to debug by setting RUBYLLM_DEBUG envar to true
9292
config.log_assume_model_exists = false # Silence "Assuming model exists for provider" warning
@@ -167,8 +167,8 @@ RubyLLM.configure do |config|
167167
config.log_file = '/logs/ruby_llm.log' # Path to log file (default: nil, logs to STDOUT)
168168
config.log_level = :debug # Log level (:debug, :info, :warn)
169169

170-
# --- Custom Logger ---
171-
config.logger = Rails.logger
170+
# --- OR Custom Logger ---
171+
config.logger = Rails.logger # NOTE: When set the log_file and log_level settings are not used.
172172
end
173173
```
174174

0 commit comments

Comments
 (0)