Getting more data in Logs - Log4j
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   jay_jain
Posted On:   Tuesday, June 5, 2007 06:56 AM

Hi I am getting below output from log4j. [6/4/07 15:40:37:847 GMT+08] 24f777f SystemOut O [04/06/2007 15:40:37,846] (?) - DEBUG - sub form id :SUB_SEARCH_APP2 [6/4/07 15:40:37:848 GMT+08] 24f777f SystemOut O [04/06/2007 15:40:37,848] (?) - DEBUG - sub form id :SUB_SEARCH_APP1 [6/4/07 15:40:37:848 GMT+08] 24f777f SystemOut O [04/06/2007 15:40:37,848] (?) - DEBUG - ***************** End setProperties ****************** [6/4/07 15:40:37:848 GMT+08] 24f777f SystemOut O FormHandlerManager>> handleForm = Y Calling currentForm.processForm(request) [6/4/07 15:40:37:848 GMT+08] 24f777f SystemOut O FormHandler.processForm in Line 1-3 I am getting time   More>>

Hi I am getting below output from log4j.


[6/4/07 15:40:37:847 GMT+08] 24f777f SystemOut O [04/06/2007 15:40:37,846] (?) - DEBUG - sub form id :SUB_SEARCH_APP2

[6/4/07 15:40:37:848 GMT+08] 24f777f SystemOut O [04/06/2007 15:40:37,848] (?) - DEBUG - sub form id :SUB_SEARCH_APP1

[6/4/07 15:40:37:848 GMT+08] 24f777f SystemOut O [04/06/2007 15:40:37,848] (?) - DEBUG - ***************** End setProperties ******************

[6/4/07 15:40:37:848 GMT+08] 24f777f SystemOut O FormHandlerManager>> handleForm = Y Calling currentForm.processForm(request)

[6/4/07 15:40:37:848 GMT+08] 24f777f SystemOut O FormHandler.processForm




in Line 1-3 I am getting timestamp twice. and rest 2 lines are not showing any level(like DEBUG etc).


I want to elemenate one timestamp and GMT time also and "SystemOut" word also. Please suggest me where I need to check.

I know second timestamp is comming from log4j.properties. please suggest for first one.


Thanks a lot. also attaching Log4j.properties's contents.



Log4j.properties :


cat /opt/WebSphere/AppServer/installedApps/MYCNSPSH01WS001Network/CH_Matrix.ear/MatrixCHWeb.war/WEB-INF/log4j.properties
# Use Only ConsoleAppender
log4j.rootCategory=debug, stdout


#Set layout for ConsoleAppender
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
#log4j.appender.stdout.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss} [%p] %C : (%M):[line:%L] : %m%n

log4j.appender.stdout.layout.ConversionPattern=[%d{dd/MM/yyyy HH:mm:ss,SSS}] (%c) - %5p - %m%n

#### Second appender writes to a file
#log4j.appender.R=org.apache.log4j.RollingFileAppender
#log4j.appender.R.File=C:/WSAD_Log4J/WSAD_Log4J.log

#### Control the maximum log file size
#log4j.appender.R.MaxFileSize=10000KB
#### Archive log files (one backup file here)
#log4j.appender.R.MaxBackupIndex=100

#log4j.appender.R.layout=org.apache.log4j.PatternLayout
#log4j.appender.R.layout.ConversionPattern=[%d{dd/MM/yyyy HH:mm:ss,SSS}] (%F) - %5p - %m%n
#log4j.appender.R.layout.ConversionPattern=[%d{dd/MM/yyyy HH:mm:ss,SSS}] (%F) - %5p - %m%n$    <<Less
About | Sitemap | Contact