Close

Spring - Directly Using Log4J API in Spring

Following example shows how to use Log4j in spring core.

Following example directly uses Log4J Api directly rather than using JCL api.

See the core Spring logging tutorials here

Example Project

Dependencies and Technologies Used:

  • spring-core 4.3.8.RELEASE (Spring Core)
  • spring-context 4.3.8.RELEASE (Spring Context)
  • log4j 1.2.17 (Apache Log4j 1.2)
  • JDK 1.8
  • Maven 3.3.9

spring-using-log4j-api Select All Download
  • spring-using-log4j-api
    • src
      • main
        • java
          • com
            • logicbig
              • example
                • MyBean.java
          • resources

    See Also