Package org.eclipse.birt.chart.log
Interface ILogger
public interface ILogger
Provides an abstraction layer into the logging framework capable of writing
categorized messages into a target repository (or console).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAll message type.static final intAn error message type.static final intA fatal error message type.static final intAn informational message type.static final intAll tracing message type.static final intA warning message type. -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs a message for the given message type into a target repository.voidLogs an exception into the target repository or destination.voidsetVerboseLevel(int iVerboseLevel) Sets the verbose level to specify the granularity of messages being logged based on the message type.
-
Field Details
-
ALL
static final int ALLAll message type.- See Also:
-
TRACE
static final int TRACEAll tracing message type.- See Also:
-
INFORMATION
static final int INFORMATIONAn informational message type.- See Also:
-
WARNING
static final int WARNINGA warning message type.- See Also:
-
ERROR
static final int ERRORAn error message type.- See Also:
-
FATAL
static final int FATALA fatal error message type.- See Also:
-
-
Method Details
-
setVerboseLevel
void setVerboseLevel(int iVerboseLevel) Sets the verbose level to specify the granularity of messages being logged based on the message type.- Parameters:
iVerboseLevel- Determines how to filter messages to be displayed on the console.
-
log
Logs a message for the given message type into a target repository.- Parameters:
iCode- The message type to be logged.sMessage- The actual message to be logged
-
log
Logs an exception into the target repository or destination.- Parameters:
ex- The exception to be logged.
-