-
Trivadis Developer Blog
This is the publication playground for these guys from OIO Trivadis, the Trivadis Group`s Java experts.
Tag cloud
Agile Methods and development Atlassian Tools Build, config and deploy Did you know? Eclipse Universe Groovy and Grails Java and Quality Java Basics Java EE Java modularization Java Persistence Java Runtimes - VM, Appserver & Cloud Java Web Frameworks MDSD Open Source BI Other languages for the Java VM Politics Security SOA / Webservices Spring Universe Web as a Platform XML Universe
Tag Archives: Log4j
Log4j 2 configuration depending on environment
In a recent project, we used Log4j 2 as a backend for slf4j. Logging is configured differently for the local application start than for production. To do this, we used to have one configuration per environment and a piece of … Continue reading
Using the context path of a web-app as log filename with Log4J
If you have a web application which you want to deploy more than once to a single servlet container you have the problem of separating your log files for the different web app instances. This is because the log configuration … Continue reading
The condemned live longer
Years ago, Log4j 1.2 was released. Since then it was treated as dead by many developers. In the meantime logback appeared as successor of Log4j based on the slf4j API. But now, many years later, the development of log4j 2 is … Continue reading
Logging additional information like SessionID in every Log4j message
In his blog posts Log4j MDC (Mapped Diagnostic Context) : What and Why and Log4j MDC (Mapped Diagnostic Context) : Example code, Veera Sundar explains the concept of the Mapped Diagnostic Context (MDC), a thread-local key-value store that can be … Continue reading
Posted in Java Basics
Tagged Log4j, Mapped Diagnostic Context, MDC, SessionID, SLF4j
Leave a comment