www.mockcentral.org mockcentral on sourceforge.net

sample log4j.properties file

Below is an html version of a sample log4j.properties file that one might use with MockCentral to avoid excessive logging from the various libraries the server uses. The MockCentralServer distribution contains this file in regular format for anyone interested.

  # sample log4j.properties file for use with MockCentral
  log4j.rootLogger=debug, myConsole

  # define a console appender
  log4j.appender.myConsole=org.apache.log4j.ConsoleAppender
  log4j.appender.myConsole.layout=org.apache.log4j.PatternLayout
  log4j.appender.myConsole.layout.ConversionPattern=%5p [%t] (%F:%L) %m%n

  # set logging level for the following libraries to INFO to avoid excessive
  # logging:
  log4j.logger.org.apache.commons.digester.Digester=info
  log4j.logger.org.apache.commons.beanutils.BeanUtils=info
  log4j.logger.org.apache.commons.beanutils.ConvertUtils=info
  log4j.logger.org.apache.commons.beanutils.MethodUtils=info