Is there a way one can use custom priorities in syslog daemon or rsyslog daemon?
i.e. i am unable to locate a configuration change which achives it.. the other thing i can do is perhaps play with it’s source.
Cheers!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Syslog output is something admins look into. And the syslog is managed by the user-space daemon.
What that means, if you would manage somehow to cram your own custom priorities into the
syslog()call, the receiving side, likewise the users, wouldn’t be able to make much out of them.The priorities (or levels) as they are documented for the syslog() call are pretty straightforward, covering all levels of attentions admins has to pay to the error conditions. Because that is what the levels there are for.
I would recommend posing on the SO another question with details what you really want to achieve. Because inventing custom priorities is a step in wrong direction.
P.S. Otherwise, if it is some sort of tracing or debugging or diagnostic output, used only during development/testing/installation, you can always use one of the standard levels and distinct prefix in the log message. That’s what I did on few occasions to be able to extract from the syslog (with grep) only the particular types of diagnostics.