How do I use a Log4J appender as a custom handler in JBoss EAP 6?
Issue
- How do I use a Log4J appender as a custom handler in JBoss EAP 6?
- We want to do some logging to a database from EAP 6.1, and it appears that the log4j 1.2.x JDBCAppender is deficient/deprecated/not recommended. Is it reasonable to write a custom appender and place it on the boot classpath?
- Is there a way to configure "org.apache.log4j.FileAppender" as a "custom-handler" in EAP 6.x ?
- In previous JBoss versions, we have used log4j and taken advantage of the
SMTPAppender
to email errors of a certain severity level. How would you recommend that we implement this email functionality in EAP 6.x ?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.