Category: log4j

  • Augmenting Log4J stack traces with class versions

    If you have multiple versions of your code in production, it is extremely useful for the log to include the version of the classes when producing a stacktrace, otherwise it is very hard to match the lines in the stacktrace with the lines of the source code (sidenote: there is an optimization in the Sun […]

  • Why can’t I see the stacktrace under Java?

    I recently had a situation where Log4j wasn’t outputting the stacktrace of the logged exceptions. While I’m not sure that the following is the actual explanation, it seems very plausible (since the program was running Java 5). Quote from the Java 5 release notes: The compiler in the server VM now provides correct stack backtraces […]