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

This commit is contained in:
Liu Yuan
2026-03-25 21:31:07 +08:00
parent e4f4afcd4d
commit 155af28841
3 changed files with 66 additions and 0 deletions
+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")