org.eclipse.birt.chart.internal.log
Class DefaultLoggerImpl

java.lang.Object
  extended by org.eclipse.birt.chart.internal.log.DefaultLoggerImpl
All Implemented Interfaces:
ILogger

public final class DefaultLoggerImpl
extends java.lang.Object
implements ILogger

A default implementation for the chart logging framework


Field Summary
 
Fields inherited from interface org.eclipse.birt.chart.log.ILogger
ALL, ERROR, FATAL, INFORMATION, TRACE, WARNING
 
Method Summary
static ILogger instance()
          Returns a singleton instance of the logger.
 void log(java.lang.Exception ex)
          Logs an exception into the target repository or destination.
 void log(int iCode, java.lang.String sMessage)
          Logs a message for the given message type into a target repository.
 void logFromScript(java.lang.String sMessage)
          Deprecated. Logs messages originating from scripts associated with a chart model.
 void setVerboseLevel(int iVerboseLevel)
          Sets the verbose level to specify the granularity of messages being logged based on the message type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static final ILogger instance()
Returns a singleton instance of the logger.

Returns:
A singleton instance of the logger.

setVerboseLevel

public final void setVerboseLevel(int iVerboseLevel)
Description copied from interface: ILogger
Sets the verbose level to specify the granularity of messages being logged based on the message type.

Specified by:
setVerboseLevel in interface ILogger
Parameters:
iVerboseLevel - Determines how to filter messages to be displayed on the console.

logFromScript

public final void logFromScript(java.lang.String sMessage)
Deprecated. Logs messages originating from scripts associated with a chart model.

Parameters:
sMessage - The informational message to be logged.

log

public void log(int iCode,
                java.lang.String sMessage)
Description copied from interface: ILogger
Logs a message for the given message type into a target repository.

Specified by:
log in interface ILogger
Parameters:
iCode - The message type to be logged.
sMessage - The actual message to be logged

log

public void log(java.lang.Exception ex)
Description copied from interface: ILogger
Logs an exception into the target repository or destination.

Specified by:
log in interface ILogger
Parameters:
ex - The exception to be logged.


Copyright © 2005-2008 Actuate Corp. All rights reserved.