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

Make it possible to log to multiple facilities with several logger instances #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

valo
Copy link

@valo valo commented May 2, 2012

Made it possible to log to different facilities, by having multiple loggers. We use that in our application to route special messages from the main logging stream. We log most of the messages in the USER facility and a small fraction of special messages to LOCAL3.

The way this works is that the facility passed in the constructor is taken into account when logging a message.

Fixed the test to work after this change.

valo added 2 commits May 2, 2012 16:46
…nt facilities. The facility argument is taken into account when logging a message to the syslog and is not only used as a default when creating the syslog for the first time.
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

Successfully merging this pull request may close these issues.

2 participants