Tm1Server log stops after tm1s-log properties file

Post Reply
chewza
Posts: 147
Joined: Tue Aug 17, 2010 11:51 am
OLAP Product: TM1
Version: 9.5
Excel Version: 7

Tm1Server log stops after tm1s-log properties file

Post by chewza »

Hi there

We have put in a tm1s-log.properties file in order to log user logins. However, after doing this, logging to the tmserver.log file has stopped.
I would like the have logging continue, as well as the user logging configured in the log properties file.

Is this possible? Have I configured the log properties file incorrectly? Please refer below for contents of log properties files.

Many thanks!!!

Regards
Chris


# Specify GMT or Local timezone
log4j.appender.S1.TimeZone=local
log4j.logger.TM1.Lock=ERROR

log4j.logger.TM1.Login=DEBUG, LOCK
log4j.additivity.TM1.Login=false
log4j.appender.LOCK=org.apache.log4j.SharedMemoryAppender
log4j.appender.LOCK.File=lock.log
log4j.appender.LOCK.MaxFileSize=100 MB
log4j.appender.LOCK.MaxBackupIndex=20
log4j.appender.LOCK.TimeZone=GMT
User avatar
qml
MVP
Posts: 1094
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.9 and all previous
Excel Version: 2007 - 2016
Location: London, UK, Europe

Re: Tm1Server log stops after tm1s-log properties file

Post by qml »

You need to set up your base S1 logger:

log4j.logger.TM1=INFO, S1
log4j.logger.TM1.Lock=ERROR, S1
log4j.appender.S1=org.apache.log4j.SharedMemoryAppender
log4j.appender.S1.MemorySize=10 MB
log4j.appender.S1.MaxFileSize=100 MB
log4j.appender.S1.MaxBackupIndex=20
log4j.appender.S1.TimeZone=local

log4j.logger.TM1.Login=DEBUG, S2
log4j.additivity.TM1.Login=false
log4j.appender.S2=org.apache.log4j.SharedMemoryAppender
log4j.appender.S2.File=login.log
log4j.appender.S2.MaxFileSize=100 MB
log4j.appender.S2.MaxBackupIndex=20
log4j.appender.S2.TimeZone=local
Kamil Arendt
chewza
Posts: 147
Joined: Tue Aug 17, 2010 11:51 am
OLAP Product: TM1
Version: 9.5
Excel Version: 7

Re: Tm1Server log stops after tm1s-log properties file

Post by chewza »

Hi Kamil

Many thanks. So does the S1 part ensure everything logs to the Tm1Server log (exactly as before), and the S2 part logs log logins to the login file?

Many thx

Regards
Chris
User avatar
qml
MVP
Posts: 1094
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.9 and all previous
Excel Version: 2007 - 2016
Location: London, UK, Europe

Re: Tm1Server log stops after tm1s-log properties file

Post by qml »

chewza wrote: Wed Mar 04, 2020 12:26 pm Many thanks. So does the S1 part ensure everything logs to the Tm1Server log (exactly as before), and the S2 part logs log logins to the login file?
Precisely. The names S1 and S2 given to the logger streams are totally arbitrary, BTW. Other names can be used too.
Kamil Arendt
Post Reply