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

what is the best way to log? #32

Open
melezhik opened this issue Oct 11, 2021 · 2 comments
Open

what is the best way to log? #32

melezhik opened this issue Oct 11, 2021 · 2 comments

Comments

@melezhik
Copy link

In mybfio cro app I just use naive(?) approach say "log message" howevere my messages are not appeared in stdout ( buffering ? ) straight way, and sometime only appear when I restart cro app ... weird enough

Maybe I just use it wrong and I have to utilize another ( cro? ) method for logging

I run my app as

nohup cro run > cro.log &
@jnthn
Copy link
Member

jnthn commented Oct 11, 2021

Turn off output buffering in your service entry script (.out-buffer = False for $*OUT, $*ERR;). If we someday get a PTY implementation then the cro running will totally use it (I'm hoping libuv might do it and then we just have to expose it.)

@melezhik
Copy link
Author

Thanks, I will try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants