|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--portlets.compoze.groupware.util.Logger
This class provides services for logging messages.
Inner Class Summary | |
static class |
Logger.Area
This class represents an application area. |
Field Summary | |
static int |
LEVEL_DEBUG
Log level for debug messages. |
static int |
LEVEL_ERROR
Log level for errors. |
static int |
LEVEL_INFO
Log level for informational messages. |
static int |
LEVEL_WARNING
Log level for warnings. |
Method Summary | |
static Logger |
i()
Get the singleton instance of the logger. |
void |
logMessage(int iLevel,
java.lang.String sMessage)
Logs the specified message. |
void |
logMessage(int iLevel,
java.lang.String sMessage,
java.lang.Throwable th)
Logs the specified message. |
void |
logMessage(Logger.Area area,
int iLevel,
java.lang.String sMessage)
Logs the specified message. |
void |
logMessage(Logger.Area area,
int iLevel,
java.lang.String sMessage,
java.lang.Throwable th)
Logs the specified message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LEVEL_ERROR
public static final int LEVEL_WARNING
public static final int LEVEL_INFO
public static final int LEVEL_DEBUG
Method Detail |
public static Logger i()
public void logMessage(int iLevel, java.lang.String sMessage)
iLevel
- the log level (see LEVEL_
constants)sMessage
- the messagepublic void logMessage(Logger.Area area, int iLevel, java.lang.String sMessage)
area
- the area (may be null
)iLevel
- the log level (see LEVEL_
constants)sMessage
- the messagepublic void logMessage(int iLevel, java.lang.String sMessage, java.lang.Throwable th)
iLevel
- the log level (see LEVEL_
constants)sMessage
- the messageth
- the associated exception (may be null
)public void logMessage(Logger.Area area, int iLevel, java.lang.String sMessage, java.lang.Throwable th)
area
- the area (may be null
)iLevel
- the log level (see LEVEL_
constants)sMessage
- the messageth
- the associated exception (may be null
)
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |