Tuesday Jun 25

Sample Log4j.properties

PDF Print E-mail
Friday, 20 May 2011 13:45
AddThis Social Bookmark Button

Sample Property file for Log4j

Find below a sample log4j property file who defines a console Appender and write from the DEBUG level to the ERROR level all messages for classes in and under the package com.ubiteck .

Spring java source

log4j.rootLogger=DEBUG, STDOUT
# STDOUT appender
log4j.appender.STDOUT.layout.ConversionPattern=%d %p [%t] %C{1} - %m\n

# use the STDOUT appender. set the level to INFO.

Tags: package , property , file , level , sample , stdout , log4j , log4j.rootlogger=debug , com.ubiteck , [%t] , appender

Add comment

Security code

Java Tutorial on Facebook