upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/.env.example
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-26 16:17:55 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-27 20:38:15 +0000
commit1ae97cd85aec95f6270f853b28e48774cefc6bf6 (patch)
treeb03bb341682e3c8ac69a482e370914e4a0060a85 /.env.example
parent87bd544b4539fc17c7919a2185663fb9debae2d1 (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 '.env.example')
-rw-r--r--.env.example7
1 files changed, 5 insertions, 2 deletions
diff --git a/.env.example b/.env.example
index e152b89..01854f4 100644
--- a/.env.example
+++ b/.env.example
@@ -101,9 +101,12 @@
101# LOGGING 101# LOGGING
102# ============================================================================ 102# ============================================================================
103 103
104# Rust log level (not a ngit-grasp config, but useful for debugging) 104# Log level for application logging
105# CLI: --log-level <level>
106# Default: info
105# Options: error, warn, info, debug, trace 107# Options: error, warn, info, debug, trace
106# RUST_LOG=info 108# Can also use filter expressions: ngit_grasp=debug,actix_web=info
109# NGIT_LOG_LEVEL=info
107 110
108# ============================================================================ 111# ============================================================================
109# PROACTIVE SYNC (GRASP-02) 112# PROACTIVE SYNC (GRASP-02)