logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ragz_82 <k.raghavendra....@oracle.com>
Subject Unable to disable ConsoleAppender in Log4j - Plz Help
Date Thu, 25 Feb 2010 16:26:08 GMT

I am writing logs for my application using Log4j and I need to use only
FileAppender. Right since the beginning, the ConsoleAppender seems to be
turned on and the logging to Console never stops.

Also each line written to the console is prefixed with unwanted data. I am
unable to turn this off. Surprisingly this data is NOT written to the file.

#######################################
(Sample Line from console)
1526905 [[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default
(self-tuning)'] DEBUG norkomreports.main.MantasQuery_param [Line 684] -
getFieldOperatorsMapping:: iRecordCount: 24
#######################################

FileAppender works fine without any issues.

Following is the extract of my log4j properties.
PS: These properties are inside the application's main properties file. I
believe this wont affect log4j configuration. Plz correct me if I am wrong.

################# Log4j Properties ###################
log4j.logger.norkomreports=DEBUG,A1

log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender

#SIT Log location
log4j.appender.A1.File=/data/applications/norkom/norkocms/BEA4/norkom_dbreports/logs/norkom_dbreports.log

#UAT & PROD Log location
#log4j.appender.A1.File=/data/applications/norkom/BEA/norkom_dbreports/logs/norkom_dbreports.log

log4j.appender.A1.DatePattern='_'yyyy_MM_dd'.log'
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{MMM-dd-yyyy@HH:mm:ss} %-5p
(%13F:%L) %3x - %m%n

#define the appender named CONSOLE
#log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
#log4j.appender.CONSOLE.conversionPattern=%m%n

#######################################################

Any help is appreciated. Thanks a lot in advance.

Regards,
Raghu

-- 
View this message in context: http://old.nabble.com/Unable-to-disable-ConsoleAppender-in-Log4j---Plz-Help-tp27714469p27714469.html
Sent from the Log4j - Users mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message