| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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(Class<?> name)
 | 
 void | 
bindClass(String name)
 | 
 int | 
getLevel()
 | 
 void | 
init(Properties props)
 | 
 boolean | 
isDebug()
Debugging log is enabled.  | 
 void | 
log(int priority,
       String message,
       Object source,
       Throwable ex)
 | 
 void | 
log(int priority,
       String message,
       Throwable ex)
 | 
 void | 
logDebug(String message)
 | 
 void | 
logDebug(String message,
                 Object... tracableObjects)
 | 
 void | 
logDebug(String message,
                 Object tracableObject)
 | 
 void | 
logDebug(String message,
                 Throwable e)
 | 
 void | 
logDebugBinaryFile(File file,
                                     byte[] data)
Logs the given binary data to the specified file if log level is set to LOG_DEBUG. | 
 void | 
logDebugBinaryFile(String filePrefix,
                                     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(File file,
                         String content)
Logs the given text to the specified file if log level is set to LOG_DEBUG. | 
 void | 
logDebugFile(String filePrefix,
                         String fileSuffix,
                         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(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(String message)
Log error message.  | 
 void | 
logError(String message,
                 Throwable e)
Log error with exception  | 
 void | 
logError(Throwable e)
Log error with exception, use the exceptions.getLocatizedMethod for the message  | 
 void | 
logInfo(String message)
 | 
 void | 
logInfo(String message,
               Object... tracableObjects)
 | 
 void | 
logInfo(String message,
               Object tracableObject)
 | 
 void | 
logInfo(String message,
               Throwable e)
 | 
 void | 
logWarning(String message)
 | 
 void | 
logWarning(String message,
                     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(Properties props)
props - void bindClass(String name)
name - void bindClass(Class<?> name)
name - void logDebug(String message)
message - 
void logDebugFile(File file,
                  String content)
LOG_DEBUG.
file - file to log tocontent - text to be logged
void logDebugFile(String filePrefix,
                  String fileSuffix,
                  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(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(File file,
                        byte[] data)
LOG_DEBUG.
file - file to log todata - binary data to be logged
void logDebugBinaryFile(String filePrefix,
                        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(String message)
message - void logWarning(String message)
message - void logError(String message)
message - the log message
void logDebug(String message,
              Throwable e)
message - e - 
void logInfo(String message,
             Throwable e)
message - e - 
void logWarning(String message,
                Throwable e)
message - e - 
void logError(String message,
              Throwable e)
message - the log messagee - the exception to be loggedvoid logError(Throwable e)
e - the exception to be logged
void logDebug(String message,
              Object tracableObject)
message - tracableObject - 
void logDebug(String message,
              Object... tracableObjects)
message - tracableObjects - 
void logInfo(String message,
             Object tracableObject)
message - tracableObject - 
void logInfo(String message,
             Object... tracableObjects)
message - tracableObjects - 
void log(int priority,
         String message,
         Throwable ex)
priority - message - ex - 
void log(int priority,
         String message,
         Object source,
         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.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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