By default, the FATAL level in log4j will map to emergency in Syslog. Because of IT syslog usage requirements in our corporation, I need FATAL to map to syslog alert instead.
Does anyone know of a simple way to accomplish this?
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.
There is guidance here on how to do this by overriding the
appendmethod in the SyslogAppender class. afai can see the mappings inlog4jare hard-coded.