Page 1 of 1

Duplicate Message Log Entries

Posted: Wed Jun 12, 2013 5:29 am
by fleaster
Hi all,
I noticed in our message log that every event is producing 2x duplicate messages in the log - which is dramatically increasing our log file size :p

...below is our tm1 log properties file - am trying to figure out if there is any parameter in there that is causing the messages to duplicate... so if anyone has any ideas, please let me know :)

thanks!

Matt

Code: Select all

#
#  Enable INFO level logging through the shared memory appender, by default.  The server 
#  will write informational messages, as well as errors and warnings to the log file.
#

# 
log4j.rootLogger=INFO, S1
log4j.logger.TM1=INFO, S1

# S1 is set to be a SharedMemoryAppender
log4j.appender.S1=org.apache.log4j.SharedMemoryAppender
log4j.appender.S1.File=tm1server.log

# Specify the size of the shared memory segment
log4j.appender.S1.MemorySize=5 MB

# Specify the max filesize
log4j.appender.S1.MaxFileSize=20 MB

# Specify the max backup index
log4j.appender.S1.MaxBackupIndex=20

# S1 uses PatternLayout
log4j.appender.S1.layout=org.apache.log4j.PatternLayout
log4j.appender.S1.layout.ConversionPattern=%t   %p   %d{%Y-%m-%d %H:%M:%S,%Q}   %c   %m%n

# Specify GMT or Local timezone
log4j.appender.S1.TimeZone=Local

Re: Duplicate Message Log Entries

Posted: Wed Jun 12, 2013 8:04 am
by rmackenzie
Try removing either the 7th OR the 8th line in the file.

Re: Duplicate Message Log Entries

Posted: Wed Jun 12, 2013 10:27 am
by fleaster
ok so am assuming i need to remove "log4j.rootLogger=INFO, S1" then...

thanks for the tip! :)

Re: Duplicate Message Log Entries

Posted: Thu Jun 13, 2013 3:21 am
by rmackenzie
fleaster wrote:ok so am assuming i need to remove "log4j.rootLogger=INFO, S1" then...

thanks for the tip! :)
Yep, that's the one I'd try first :)