jmxtrans / jmxtrans-agent

Java Agent based JMX metrics exporter.
MIT License
178 stars 110 forks source link

Use stderr for logging instead of stdout #84

Closed tesseract2048 closed 6 years ago

tesseract2048 commented 8 years ago

Logging to stdout could be problematic when chaining multiple programs, since in linux people usually assumes stdout to be actual output of a problem.

cyrille-leclerc commented 7 years ago

@tesseract2048 sorry for the late answer, I discover you message, a notification issue from github. Do you still have this need? I am thinking of a system property -Dorg.jmxtrans.agent.util.logging.Logger.console=stderr or an environment variable JMX_TRANS_AGENT_CONSOLE=stderr.

Would that make sense?

cyrille-leclerc commented 7 years ago

See https://github.com/jmxtrans/jmxtrans-agent/pull/96

tesseract2048 commented 7 years ago

Yes. That would work. Thanks, @cyrille-leclerc.

simmel commented 6 years ago

@tesseract2048 @cyrille-leclerc This can be closed.

cyrille-leclerc commented 6 years ago

Thanks @simmel @tesseract2048