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

How to get which stream(stdout/stderr) the log entry comes from? #8

Open
vblz opened this issue Jun 14, 2019 · 2 comments
Open

How to get which stream(stdout/stderr) the log entry comes from? #8

vblz opened this issue Jun 14, 2019 · 2 comments

Comments

@vblz
Copy link
Contributor

vblz commented Jun 14, 2019

As I can get from README there is no way to get which stream (stdout or stderr) the log entry comes from, at least at API, isn't it?
Also I'm looking at core.LogEntry entity and there is no stream/type/etc field too.

type LogEntry struct {

It would be nice to have the possibility to separate logs from stdout and stderr.

@umputun
Copy link
Owner

umputun commented Jun 14, 2019

This is an interesting idea. Probably it is possible to tag them somehow as they sent to syslog server, but I'm not sure what the standard way to do it , i.e. how to tell syslog server "this is from errors stream".

@vblz
Copy link
Contributor Author

vblz commented Jun 18, 2019

As for me, it's mainly interesting for MongoDB + API. Do you want to keep the same LogEntry structure for syslog and other storages?

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