Logging Properties File
The tm1s-log.properties file is a text file that contains the parameters for configuring logging for a specific TM1 server.
Each TM1 server uses its own logging properties file and checks for the file whenever the server is started. After startup, the server checks for updates to the properties file and adjusts the logging as needed. You can make changes to a properties file in real-time and the TM1 server will dynamically read the changes and adjust the logging.
A sample logging properties file is provided in the directory of each sample TM1 database that you install. Sample TM1 databases are installed in the following locations:
- Windows system:install_dir\samples\tm1\sample_dir
- UNIX system: install_dir/samples/tm1/sample_dir
Where sample_dir is the directory for a sample TM1 database. For example:
- Planning Sample Data: install_dir\samples\tm1\PlanSamp
- Sample Data: install_dir\samples\tm1\SData
Here is an example of the logging properties file:
Log4j.rootLogger=INFO, S1
Log4j.logger.TM1=INFO
# S1 is set to be a SharedMemoryAppender log4j.appender.S1=org.apache.log4j.
SharedmemoryAppender
#Specify the size of the shared memory segment log4j.appender.S1.MemorySize=5
MB
#Specify the max filesize log4j.appender.S1.MaxFileSize=10
MB
Specify the max backup index log4j.appender.S1.MaxBackupIndex=3