diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-26 16:17:55 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-27 20:38:15 +0000 |
| commit | 1ae97cd85aec95f6270f853b28e48774cefc6bf6 (patch) | |
| tree | b03bb341682e3c8ac69a482e370914e4a0060a85 /src/git/authorization.rs | |
| parent | 87bd544b4539fc17c7919a2185663fb9debae2d1 (diff) | |
feat: add NGIT_LOG_LEVEL configuration option
Add proper log level configuration following standard approach:
- CLI flag: --log-level <level>
- Environment variable: NGIT_LOG_LEVEL
- Default: info
- Supports simple levels (error, warn, info, debug, trace)
- Supports filter expressions (e.g., ngit_grasp=debug,actix_web=info)
Configuration is now consistent across all four sources:
1. src/config.rs - Config struct with log_level field
2. docs/reference/configuration.md - Full documentation
3. nix/module.nix - NixOS module with logLevel option
4. .env.example - Example configuration file
This replaces the previous RUST_LOG approach with proper integration
into the ngit-grasp configuration system, enabling trace logging from
CLI, environment variables, or NixOS configuration.
Diffstat (limited to 'src/git/authorization.rs')
0 files changed, 0 insertions, 0 deletions