Hi
I am using log4j for logging in my application, i have recently added
webservice using axis 1.4 to my application,
now i am
getting lots of axis logs in the log file, how do i suppress those
logs, or contral what to log and what not to log,
my log4j is configured using properties file and is as below



log4j.rootLogger=, A1, A2

# A1 is set to be ConsoleAppender sending its output to System.out
log4j.appender.A1=org.apache.log4j.ConsoleAppender


# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout

# The conversion pattern consists of date in ISO8601 format, level,
# thread name, logger name truncated to its rightmost two components
# and left justified to 17 characters, location information consisting
# of file name (padded to 13 characters) and line number, nested
# diagnostic context, the and the application supplied message

log4j.appender.A1.layout.ConversionPattern=%d %-5p [%t] %-17c{2} (%13F:%L)
%3x - %m%n

# Appender A2 writes to the file "log".
log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
# use ${} to specify location
log4j.appender.A2.File=${java.io.tmpdir}approvals6000F3.txt

# Truncate 'test' if it aleady exists.
log4j.appender.A2.Append=false
log4j.appender.A2.DatePattern='.'yyyy-MM-dd

# Appender A2 uses the PatternLayout.
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%-5r %-5p [%t] %c{2} - %m%n



Ashish

Reply via email to