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

Consider using notice for log.Info with syslog #198

Open
rs opened this issue Dec 14, 2019 · 0 comments
Open

Consider using notice for log.Info with syslog #198

rs opened this issue Dec 14, 2019 · 0 comments

Comments

@rs
Copy link
Contributor

rs commented Dec 14, 2019

Most syslog systems do not log anything below notice level.

  • macOS /etc/asl.conf:
? [<= Level notice] file system.log
  • freebsd /etc/syslog.conf:
*.err;kern.warning;auth.notice;mail.crit		/dev/console
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err	/var/log/messages

As a result, on those platforms, all log.Info are dumped unless the system configuration is changed. I'm thus proposing to set the syslog level of log.Info to notice.

Thoughts?

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

1 participant