feat(logger): add PICOCLAW_LOG_FILE env var for file-only logging

This commit is contained in:
Liu Yuan committed 2026-03-25 21:34:27 +08:00
1 parent e4f4afcd4d
commit 155af28841
3 files changed
+66

No files matched your search

+2
View File
@@ -28,6 +28,8 @@ func agentCmd(message, sessionKey, model string, debug bool) error {
return fmt.Errorf("error loading config: %w", err)
}
logger.ConfigureFromEnv()
if debug {
logger.SetLevel(logger.DEBUG)
fmt.Println("🔍 Debug mode enabled")