Is it intended to log errors to stdout while calling the option in the code stderr?


(Ks Chan) #1

As far as I know, errors and logging outputs are typically sent to stderr instead of stdout and stdout is "reserved" for program output (golang stdlib "log" package sends log line to stderr as well).

At https://github.com/elastic/libbeat/blob/b360f18e93b6d96d1c1b6c5f37302bb39790197b/logp/log.go#L143, the option is stderr but the output is stdout. Is that intentional?


(Steffen Siering) #2

Nice one. Can you add an issue to github?


(Monica Sarbu) #3

I created a ticket in GitHub with the requested functionality: https://github.com/elastic/libbeat/issues/219.


(system) #4