MicroStrategy ONE
Logging to a File
In this example, only WARNINGS are logged in a file C:\websdk\logs\warnings.txt. Add the following code in the custom logger.properties file.
# Define an alias for a handler object.
handlers=handler1
# Define the handler as DatedFileHandler so the logger object
# passes the log records to a file.
handler1.class =com.microstrategy.utils.log.DatedFileHandler
# Instruct the DatedFileHandler to accept log messages
# of logging level WARNING or higher
handler1.level=WARNING
# Format the log messages using the formatter called XMLFormatterEx.
handler1.formatter=com.microstrategy.web.app.XMLFormatterEx
# Indicate the destination for the resulting messages.
handler1.pattern=c:/websdk/logs/warnings.txt
# Instruct the Root Logger to accept log messages
# of logging level SEVERE or higher.
level= SEVERE