Categories:
Audio (13)
Biotech (29)
Bytecode (35)
Database (77)
Framework (7)
Game (7)
General (512)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (86)
JavaBeans (16)
JDBC (89)
JDK (337)
JSP (20)
Logging (103)
Mail (54)
Messaging (8)
Network (71)
PDF (94)
Report (7)
Scripting (83)
Security (32)
Server (119)
Servlet (17)
SOAP (24)
Testing (50)
Web (19)
XML (301)
Other Resources:
Using Log4j 1.2 Bridge with Log4j 2 API
How can I run my application with both Apache Log4j 2 API and Log4j 1.2 API? My program has two parts, one part uses the new Log4j 2 API, but the other part uses the old Log4j 1.2 API.
✍: FYIcenter.com
The Apache Log4j 2 package comes with the Log4j 1.2 Bridge module
to allow you run programs that use both Log4j 2 API and Log4j 1.2 API.
When you run your program, you need to include these JAR files in the classpath:
Warning, you should not include log4j-1.2.x.jar in the classpath. Log4j 1.2 API calls will be handled by log4j-1.2-api-2.x.jar.
The picture belows shows you the JAR dependency diagram of your application and Log4j JAR files.
Â
⇒ Trace Logging on Apache Log4j API
⇠Running Program with Apache Log4j Configuration
⇑ Using Apache Log4j in Java Programs
⇑⇑ FAQ for Apache Log4j
2022-01-12, 7457👍, 1💬
Popular Posts:
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...
How to download and install JDK (Java Development Kit) 1.4? If you want to write Java applications, ...
How to display types defined in an XML Schema file with the xs\QueryXS.java provided in the Apache X...
MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but c...
What Is ojdbc8.jar for Oracle 12c R2? ojdbc8.jar for Oracle 12c R2 is the JAR files of ojdbc.jar, JD...