MicroStrategy ONE
Logging to a System Console
In this example, all SEVERE messages are logged to the system console. Add the following code in the custom logger.properties file.
# Define an alias for a handler object.
handlers=handler1
# Define the handler as ConsoleHandler so the logger object
# passes the log records to a system console.
handler1.class =com.microstrategy.utils.log.ConsoleHandler
# Instruct the ConsoleHandler to accept log messages
# of logging level SEVERE or higher
handler1.level=SEVERE
# Format the log messages using the formatter called ExtendedFormatter.
handler1.formatter= com.microstrategy.utils.log.ExtendedFormatter
# Instruct the Root Logger to accept log messages
# of logging level SEVERE or higher.
level= SEVERE