Page 1 of 1

TM1S Logging Properties - Capturing form publishing

Posted: Tue May 11, 2021 2:23 pm
by tomok
Does anyone know if it is possible to add parameters to the tm1slog.properties file to log activity in the }Applications folder? If so, what would the parameters be?

Re: TM1S Logging Properties - Capturing form publishing

Posted: Tue May 11, 2021 5:46 pm
by gtonkin
Not sure what kind of activity you are trying to log but if it is TM1 related, you may try:

Code: Select all

log4j.logger.TM1.Folder=DEBUG, Folder
log4j.appender.Folder=org.apache.log4j.SharedMemoryAppender
log4j.appender.Folder.MemorySize=5 MB
log4j.appender.Folder.File=TM1_Folder.log
log4j.appender.Folder.MaxFileSize=5 MB
log4j.appender.Folder.MaxBackupIndex=5
log4j.appender.Folder.Timezone=Local
May be a bit verbose but your could parse the output to find what you need. All the usual warnings about log size, performance etc. apply.

You could also generate a list of all the loggers using:

Code: Select all

log4j.logger.TM1.MetaLogger=DEBUG, METALOGGER
log4j.appender.METALOGGER=org.apache.log4j.SharedMemoryAppender
log4j.appender.METALOGGER.MemorySize=5 MB
log4j.appender.METALOGGER.File=tm1_MetaLoggers.log
log4j.appender.METALOGGER.MaxFileSize=5 MB
log4j.appender.METALOGGER.MaxBackupIndex=5
log4j.appender.METALOGGER.Timezone=Local
FYI - TM1.Application does not seem to do to much with basic tests but YMMV.

Re: TM1S Logging Properties - Capturing form publishing

Posted: Tue May 11, 2021 6:58 pm
by tomok
gtonkin wrote: Tue May 11, 2021 5:46 pm Not sure what kind of activity you are trying to log but if it is TM1 related, you may try:
Thanks. I am trying to capture whenever someone publishes a file in the }Applications folder. We had someone update a form and screwed it up by publishing from an outdated file. Now no one wants to take responsibility for doing it so I would like to be able to capture in the server log whenever a file inside the }Applications folder is added or updated.