|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.chart.internal.log.JavaUtilLoggerImpl
public class JavaUtilLoggerImpl
An ILogger implementation using java.util.logging.Logger
Field Summary |
---|
Fields inherited from interface org.eclipse.birt.chart.log.ILogger |
---|
ALL, ERROR, FATAL, INFORMATION, TRACE, WARNING |
Constructor Summary | |
---|---|
JavaUtilLoggerImpl(java.lang.String name)
The constructor. |
|
JavaUtilLoggerImpl(java.lang.String name,
int verboseLevel)
The constructor. |
Method Summary | |
---|---|
java.util.logging.Logger |
getJavaLogger()
|
static void |
initFileHandler(java.lang.String sLogFolder)
|
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 |
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 |
Constructor Detail |
---|
public JavaUtilLoggerImpl(java.lang.String name)
name
- public JavaUtilLoggerImpl(java.lang.String name, int verboseLevel)
name
- Method Detail |
---|
public java.util.logging.Logger getJavaLogger()
public void setVerboseLevel(int iVerboseLevel)
ILogger
setVerboseLevel
in interface ILogger
iVerboseLevel
- Determines how to filter messages to be displayed on the
console.public void log(int iCode, java.lang.String sMessage)
ILogger
log
in interface ILogger
iCode
- The message type to be logged.sMessage
- The actual message to be loggedpublic void log(java.lang.Exception ex)
ILogger
log
in interface ILogger
ex
- The exception to be logged.public static void initFileHandler(java.lang.String sLogFolder) throws java.lang.SecurityException, java.io.IOException
java.lang.SecurityException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |