MicroStrategy ONE

Logging Messages for an Existing Package

In this example, all WARNINGS are logged to the system console for the package com.microstrategy.web.app.transforms. Add the following code in the custom logger.properties file.

# Specify the logging level as WARNING for the logger object in

# the package com.microstrategy.web.app.transforms

com.microstrategy.web.app.transforms.Log.level=WARNING

# Define an alias for a handler object.

com.microstrategy.web.app.transforms.Log.handlers=handler1

# Define the handler as ConsoleHandler so the logger object

# passes the log records to a system console.

com.microstrategy.web.app.transforms.Log.handler1.class =com.microstrategy.utils.log.ConsoleHandler

# Instruct the ConsoleHandler to accept log messages

# of logging level WARNING or higher

com.microstrategy.web.app.transforms.Log.handler1.level=WARNING

# Format the log messages using the formatter called ExtendedFormatter.

com.microstrategy.web.app.transforms.Log.handler1.formatter= com.microstrategy.utils.log.ExtendedFormatter

# Instruct the Root Logger to accept log messages

# of logging level SEVERE or higher.

level= SEVERE