niedenzu

Hints and tricks for developers

Martins Amazon Wunschliste

log4j – where are my logs? 29. January 2015

Create a Servlet that shows you the log4j-configuration

String configurationOptionStr = OptionConverter.getSystemProperty(
  LogManager.DEFAULT_CONFIGURATION_KEY, 
  null);
		
String configuratorClassName = OptionConverter.getSystemProperty(
  LogManager.CONFIGURATOR_CLASS_KEY, 
  null);
						
writer.write("configurationOptionStr:" +configurationOptionStr+"n");
writer.write("configuratorClassName:" +configuratorClassName+"n");
No Comments on log4j – where are my logs?
Tags: ,
Categories: Java
Martin Rocks