Is it possible to set appender for one logger?
I’ve found line in example log4j.properties file:
log4j.logger.org.apache.activemq=INFO, stdout
but I am curious if it can be done for logger defined by me. How to do 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.
Create a new appender which is only used from your package.
or
or even one logger in a class.