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 can I set syslog facility #399

Open
takafumi-kataoka opened this issue Jul 17, 2024 · 1 comment
Open

How can I set syslog facility #399

takafumi-kataoka opened this issue Jul 17, 2024 · 1 comment

Comments

@takafumi-kataoka
Copy link

It appears that there is no way to set the syslog facility for applications of type service_systemd_linux.
The first argument passed to the syslog.New function is fixed to syslog.LOG_INFO, which results in the facility always being set to kern.

w, err := syslog.New(syslog.LOG_INFO, name)

Is there any workaround for this issue?

@takafumi-kataoka
Copy link
Author

It would be better to set syslog.LOG_USER | syslog.LOG_INFO.

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