|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILogger
This interface specifies the log worker services.
Field Summary | |
---|---|
static int |
LOG_DEBUG
Debug log level |
static int |
LOG_ERROR
Fatal error log level |
static int |
LOG_INFO
Info log level |
static int |
LOG_WARNING
Warning log level |
Method Summary | |
---|---|
void |
bindClass(java.lang.Class<?> name)
|
void |
bindClass(java.lang.String name)
|
int |
getLevel()
|
void |
init(java.util.Properties props)
|
boolean |
isDebug()
Debugging log is enabled. |
void |
log(int priority,
java.lang.String message,
java.lang.Object source,
java.lang.Throwable ex)
|
void |
log(int priority,
java.lang.String message,
java.lang.Throwable ex)
|
void |
logDebug(java.lang.String message)
|
void |
logDebug(java.lang.String message,
java.lang.Object... tracableObjects)
|
void |
logDebug(java.lang.String message,
java.lang.Object tracableObject)
|
void |
logDebug(java.lang.String message,
java.lang.Throwable e)
|
void |
logDebugBinaryFile(java.io.File file,
byte[] data)
Logs the given binary data to the specified file if log level is set to LOG_DEBUG . |
void |
logDebugBinaryFile(java.lang.String filePrefix,
java.lang.String fileSuffix,
byte[] data)
Logs the given binary data to a temporary file (created from specified prefix and suffix) if log level is set to LOG_DEBUG . |
void |
logDebugFile(java.io.File file,
java.lang.String content)
Logs the given text to the specified file if log level is set to LOG_DEBUG . |
void |
logDebugFile(java.lang.String filePrefix,
java.lang.String fileSuffix,
java.lang.String content)
Logs the given text to a temporary file (created from specified prefix and suffix) if log level is set to LOG_DEBUG . |
void |
logDebugXMLFile(java.lang.String filePrefix,
XMLFragment fragment)
Logs the given XMLFragment to a temporary file (created from specified prefix and suffix ".xml") if log
level is set to LOG_DEBUG . |
void |
logError(java.lang.String message)
Log error message. |
void |
logError(java.lang.String message,
java.lang.Throwable e)
Log error with exception |
void |
logError(java.lang.Throwable e)
Log error with exception, use the exceptions.getLocatizedMethod for the message |
void |
logInfo(java.lang.String message)
|
void |
logInfo(java.lang.String message,
java.lang.Object... tracableObjects)
|
void |
logInfo(java.lang.String message,
java.lang.Object tracableObject)
|
void |
logInfo(java.lang.String message,
java.lang.Throwable e)
|
void |
logWarning(java.lang.String message)
|
void |
logWarning(java.lang.String message,
java.lang.Throwable e)
|
void |
setLevel(int level)
sets the debug level |
Field Detail |
---|
static final int LOG_DEBUG
static final int LOG_INFO
static final int LOG_WARNING
static final int LOG_ERROR
Method Detail |
---|
void init(java.util.Properties props)
props
- void bindClass(java.lang.String name)
name
- void bindClass(java.lang.Class<?> name)
name
- void logDebug(java.lang.String message)
message
- void logDebugFile(java.io.File file, java.lang.String content)
LOG_DEBUG
.
file
- file to log tocontent
- text to be loggedvoid logDebugFile(java.lang.String filePrefix, java.lang.String fileSuffix, java.lang.String content)
LOG_DEBUG
.
filePrefix
- prefix for the temp file namefileSuffix
- suffix for the temp file name, can be null (then ".tmp" is used)content
- text to be loggedFile.createTempFile(String, String)
void logDebugXMLFile(java.lang.String filePrefix, XMLFragment fragment)
XMLFragment
to a temporary file (created from specified prefix and suffix ".xml") if log
level is set to LOG_DEBUG
.
filePrefix
- prefix for the temp file namefragment
- XMLFragment to be logged (will be pretty-printed)void logDebugBinaryFile(java.io.File file, byte[] data)
LOG_DEBUG
.
file
- file to log todata
- binary data to be loggedvoid logDebugBinaryFile(java.lang.String filePrefix, java.lang.String fileSuffix, byte[] data)
LOG_DEBUG
.
filePrefix
- prefix for the temp file namefileSuffix
- suffix for the temp file name, can be null (then ".tmp" is used)data
- binary data to be loggedFile.createTempFile(String, String)
void logInfo(java.lang.String message)
message
- void logWarning(java.lang.String message)
message
- void logError(java.lang.String message)
message
- the log messagevoid logDebug(java.lang.String message, java.lang.Throwable e)
message
- e
- void logInfo(java.lang.String message, java.lang.Throwable e)
message
- e
- void logWarning(java.lang.String message, java.lang.Throwable e)
message
- e
- void logError(java.lang.String message, java.lang.Throwable e)
message
- the log messagee
- the exception to be loggedvoid logError(java.lang.Throwable e)
e
- the exception to be loggedvoid logDebug(java.lang.String message, java.lang.Object tracableObject)
message
- tracableObject
- void logDebug(java.lang.String message, java.lang.Object... tracableObjects)
message
- tracableObjects
- void logInfo(java.lang.String message, java.lang.Object tracableObject)
message
- tracableObject
- void logInfo(java.lang.String message, java.lang.Object... tracableObjects)
message
- tracableObjects
- void log(int priority, java.lang.String message, java.lang.Throwable ex)
priority
- message
- ex
- void log(int priority, java.lang.String message, java.lang.Object source, java.lang.Throwable ex)
priority
- message
- source
- ex
- void setLevel(int level)
level
- int getLevel()
boolean isDebug()
true
if the log level is DEBUG, otherwise false
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org