log4j – where are my logs?

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");

Leave a Comment

Your email address will not be published. Required fields are marked *

Martin Rocks