Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log to file #87

Open
conradludgate opened this issue May 9, 2021 · 2 comments
Open

Log to file #87

conradludgate opened this issue May 9, 2021 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@conradludgate
Copy link
Collaborator

Update our logger to write to a file as well as stdout to help with debugging. (see #79)

@ellie
Copy link
Member

ellie commented May 9, 2021

Yup this would be great! And remember that when the TUI runs, we swap stdout and stderr as a horrible hack to make things work properly

@ellie ellie added the enhancement New feature or request label May 9, 2021
@tamasfe
Copy link

tamasfe commented May 9, 2022

I suggest disabling stdout/stderr logging altogether when atuin wraps commands as well.

Setting the RUST_LOG variable will cause atuin logs to appear after every command. I was debugging an application which also used tracing for logs and seeing SQL logs after each command even when my app was not running was pretty scary :D .

To see this behavior (at least in zsh):

export RUST_LOG=info
echo "here be logs"

@ellie ellie added help wanted Extra attention is needed good first issue Good for newcomers labels Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants