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

Info and color codes logged to stdout #298

Closed
jsha opened this issue Sep 4, 2016 · 2 comments
Closed

Info and color codes logged to stdout #298

jsha opened this issue Sep 4, 2016 · 2 comments

Comments

@jsha
Copy link

jsha commented Sep 4, 2016

Steps to reproduce:

node_exporter --log.format 'logger:syslog?appname=node_exporter&local=7' &
less /var/log/syslog

Expected result: node_exporter log lines don't contain spelled-out severities or ANSI color codes.

Actual result: node_exporter log lines do contain severities and color codes.

Sep  4 22:16:31 btudb node_exporter[15767]: @cee:#033[34mINFO#033[0m[0000] Starting node_exporter (version=0.12.0, branch=master, revision=df8dcd2)  #033[34msource#033[0m=node_exporter.go:135
Sep  4 22:16:31 btudb node_exporter[15767]: @cee:#033[34mINFO#033[0m[0000] Build context (go=go1.6.2, user=root@ff68505a5469, date=20160505-22:14:18)  #033[34msource#033[0m=node_exporter.go:136
Sep  4 22:16:31 btudb node_exporter[15767]: @cee:#033[34mINFO#033[0m[0000] No directory specified, see --collector.textfile.directory  #033[34msource#033[0m=textfile.go:57
@SuperQ
Copy link
Member

SuperQ commented Sep 5, 2016

Yikes, I guess that's coming from the logging library. May be an issue for all use of our common logging0.

@discordianfish
Copy link
Member

This issue was moved to prometheus/common#71

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

3 participants