feat(logger): add PICOCLAW_LOG_FILE env var for file-only logging#1828
Merged
yinwm merged 1 commit intosipeed:mainfrom Mar 25, 2026
Merged
feat(logger): add PICOCLAW_LOG_FILE env var for file-only logging#1828yinwm merged 1 commit intosipeed:mainfrom
yinwm merged 1 commit intosipeed:mainfrom
Conversation
10 tasks
Collaborator
Related PR: #1853This PR has a dependency relationship with #1853 (feat(logging): add configurability for log levels preference). Conflict AnalysisBoth PRs modify
Recommended Merge Order#1853 should be merged first, then this PR needs to be rebased. Reason:
Suggested Integration (after #1853 is merged)```go } Feature Summary
These two features are complementary and work together: config.json: {"log_level": "debug"} # #1853: logs at debug level``` |
Collaborator
|
@liuy plz resolve conflicts. |
18d9f0b to
553bece
Compare
Contributor
Author
Done as commented |
553bece to
f90096b
Compare
f90096b to
155af28
Compare
yinwm
approved these changes
Mar 25, 2026
Collaborator
yinwm
left a comment
There was a problem hiding this comment.
LGTM! Clean implementation with good test coverage. Approved.
andressg79
pushed a commit
to andressg79/picoclaw
that referenced
this pull request
Mar 30, 2026
feat(logger): add PICOCLAW_LOG_FILE env var for file-only logging
ra1phdd
pushed a commit
to ra1phdd/picoclaw-pkg
that referenced
this pull request
Apr 12, 2026
feat(logger): add PICOCLAW_LOG_FILE env var for file-only logging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add file-only logging support for picoclaw agent via
PICOCLAW_LOG_FILEenvironment variable.Motivation
Currently picoclaw agent outputs all logs to stdout/console, which can interfere with interactive use cases (e.g., TUI scenarios). Users need a way to redirect logs to a file only.
Usage
PICOCLAW_LOG_FILE=/tmp/agent.log picoclaw agent PICOCLAW_LOG_FILE=~/.picoclaw/logs/agent.log picoclaw agent