[PR #10650] feat: add trace log level #13313

Closed
opened 2026-04-13 00:23:31 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/10650

State: closed
Merged: Yes


TRACE level outputs more information about the process. it's intended use is to trace debug generation including input encoding and output decoding.

This configuration is controlled by the existing OLLAMA_DEBUG environment variable. In addition to the current truthy values which enable DEBUG logging, integer value can now be used to finely control the log level.

  • OLLAMA_DEBUG= or OLLAMA_DEBUG=0 or OLLAMA_DEBUG=false: unset or empty or falsy values sets default INFO level
  • OLLAMA_DEBUG=1 or OLLAMA_DEBUG=true: set DEBUG level
  • OLLAMA_DEBUG=2: set TRACE level

Related #10635
Resolves #10613

**Original Pull Request:** https://github.com/ollama/ollama/pull/10650 **State:** closed **Merged:** Yes --- `TRACE` level outputs more information about the process. it's intended use is to trace debug generation including input encoding and output decoding. This configuration is controlled by the existing `OLLAMA_DEBUG` environment variable. In addition to the current truthy values which enable `DEBUG` logging, integer value can now be used to finely control the log level. - `OLLAMA_DEBUG=` or `OLLAMA_DEBUG=0` or `OLLAMA_DEBUG=false`: unset or empty or falsy values sets default INFO level - `OLLAMA_DEBUG=1` or `OLLAMA_DEBUG=true`: set DEBUG level - `OLLAMA_DEBUG=2`: set TRACE level Related #10635 Resolves #10613
GiteaMirror added the pull-request label 2026-04-13 00:23:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13313