Log Levels
Set the log level via theNRVNA_LOG_LEVEL environment variable.
| Level | Value | Description | Use Case |
|---|---|---|---|
error | 0 | Errors only | Production - minimal output |
warn | 1 | Warnings and errors | Production - catch issues |
info | 2 | General information | Default - normal operation |
debug | 3 | Detailed debugging | Development - troubleshooting |
trace | 4 | Very verbose tracing | Development - deep debugging |
Configuration
nrvna-ai Logs
llama.cpp Logs
Control llama.cpp library logging separately:Log Format
All log messages follow this format:Example Output
Thread Names
Logs include thread context for easier debugging:Main- Server main threadScanner- Directory scanning threadWorker-N- Worker threads (N = 0, 1, 2, …)
Output Streams
- ERROR level: Written to
stderr - All other levels: Written to
stdout
Thread Safety
The logging system is fully thread-safe:- All log calls are mutex-protected
- Safe to call from any thread
- No interleaved output from concurrent threads
Implementation Reference
Defined inlogger.hpp:11-16: