Home » Tag Archives: Log4j

Tag Archives: Log4j

Log4j 2.x XSD is Not Fully Descriptive

apache-log4j-logo

In the blog post JAXB and Log4j XML Configuration Files, I discussed “nuances and subtleties associated with using JAXB to work with [Log4j 1.x and Log4j 2.x] XML configuration files via Java classes.” In this post, I look at another challenge associated with generation of Log4j 2.x configuration XML via JAXB objects generated from the Log4j 2.x XML Schema file ...

Read More »

JAXB and Log4j XML Configuration Files

apache-log4j-logo

Both Log4j 1.x and Log4j 2.x support use of XML files to specify logging configuration. This post looks into some of the nuances and subtleties associated with using JAXB to work with these XML configuration files via Java classes. The examples in this post are based on Apache Log4j 1.2.17, Apache Log4j 2.6.2, and Java 1.8.0_73 with JAXB xjc 2.2.8-b130911.1802. ...

Read More »

Simplify your logging with tinylog 1.0

apache-log4j-logo

With a size of only 75 KB, tinylog is a lightweight alternative to the widespread classical logging frameworks Log4j and Logback. The final version 1.0 has been just released at the end of March, after three years of development. In several design issues, tinylog takes a deliberately different approach from classical logging frameworks in Java. This article will show the ...

Read More »

Customizing Log4j 2.0

apache-log4j-logo

We are getting closer and closer to a Log4j 2 GA release and for that reason we should start looking into what it will give us. Personally I have a lot of reasons to be excited about Log4j 2.0. The community is great, the Apache License gives me a lot of freedom and finally it is protected by the Apache ...

Read More »

Apache log4j is the leading logging framework

apache-log4j-logo

According to a survey from Zero Turnaround Apache log4j is the leading Java logging framework. This was actually a very interesting survey. It shows SLF4J is most often used as a logging facade with 61%. But it seems it is most often used with Apache Log4j, which is used by 52% of all survey participants. Just 29% use logback and ...

Read More »

Log4j 2: Performance close to insane

apache-log4j-logo

Recently a respected member of the Apache community tried Log4j 2 and wrote on Twitter: @TheASF #log4j2 rocks big times! Performance is close to insane ^^ http://t.co/04K6F4Xkaa — Mark Struberg (@struberg) May 7, 2013 (Quote from Mark Struberg: @TheASF #log4j2 rocks big times! Performance is close to insane ^^ http://logging.apache.org/log4j/2.x/ ) It happened shortly after Remko Popma contributed something which ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns