I have a custom log4j appender that writes log messages into a JMS queue. How can I use that appender in my log4perl config file. Can anyone send me the sample code please.
Thanks for your help.
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.
While Log4perl is based on log4j, and can use log4j syntax in its config files, it’s a separate implementation written in Perl. It can’t use log4j appenders. You’d have to write a Perl class with the same behavior. Once you’ve done that, you can use Log::Log4perl::JavaMap to tell Log4perl’s config reader to map the Java name of your appender to the corresponding Perl class.