deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.framework.log
Interface ILogger

All Known Implementing Classes:
JCLLogger, LoggerService

public interface ILogger

This interface specifies the log worker services.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Torsten Friebe, Andreas Schmitz, Markus Schneider, last edited by: $Author: mschneider $

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

LOG_DEBUG

static final int LOG_DEBUG
Debug log level

See Also:
Constant Field Values

LOG_INFO

static final int LOG_INFO
Info log level

See Also:
Constant Field Values

LOG_WARNING

static final int LOG_WARNING
Warning log level

See Also:
Constant Field Values

LOG_ERROR

static final int LOG_ERROR
Fatal error log level

See Also:
Constant Field Values
Method Detail

init

void init(java.util.Properties props)
Parameters:
props -

bindClass

void bindClass(java.lang.String name)
Parameters:
name -

bindClass

void bindClass(java.lang.Class<?> name)
Parameters:
name -

logDebug

void logDebug(java.lang.String message)
Parameters:
message -

logDebugFile

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.

Parameters:
file - file to log to
content - text to be logged

logDebugFile

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.

Parameters:
filePrefix - prefix for the temp file name
fileSuffix - suffix for the temp file name, can be null (then ".tmp" is used)
content - text to be logged
See Also:
File.createTempFile(String, String)

logDebugXMLFile

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.

Parameters:
filePrefix - prefix for the temp file name
fragment - XMLFragment to be logged (will be pretty-printed)

logDebugBinaryFile

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.

Parameters:
file - file to log to
data - binary data to be logged

logDebugBinaryFile

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.

Parameters:
filePrefix - prefix for the temp file name
fileSuffix - suffix for the temp file name, can be null (then ".tmp" is used)
data - binary data to be logged
See Also:
File.createTempFile(String, String)

logInfo

void logInfo(java.lang.String message)
Parameters:
message -

logWarning

void logWarning(java.lang.String message)
Parameters:
message -

logError

void logError(java.lang.String message)
Log error message.

Parameters:
message - the log message

logDebug

void logDebug(java.lang.String message,
              java.lang.Throwable e)
Parameters:
message -
e -

logInfo

void logInfo(java.lang.String message,
             java.lang.Throwable e)
Parameters:
message -
e -

logWarning

void logWarning(java.lang.String message,
                java.lang.Throwable e)
Parameters:
message -
e -

logError

void logError(java.lang.String message,
              java.lang.Throwable e)
Log error with exception

Parameters:
message - the log message
e - the exception to be logged

logError

void logError(java.lang.Throwable e)
Log error with exception, use the exceptions.getLocatizedMethod for the message

Parameters:
e - the exception to be logged

logDebug

void logDebug(java.lang.String message,
              java.lang.Object tracableObject)
Parameters:
message -
tracableObject -

logDebug

void logDebug(java.lang.String message,
              java.lang.Object... tracableObjects)
Parameters:
message -
tracableObjects -

logInfo

void logInfo(java.lang.String message,
             java.lang.Object tracableObject)
Parameters:
message -
tracableObject -

logInfo

void logInfo(java.lang.String message,
             java.lang.Object... tracableObjects)
Parameters:
message -
tracableObjects -

log

void log(int priority,
         java.lang.String message,
         java.lang.Throwable ex)
Parameters:
priority -
message -
ex -

log

void log(int priority,
         java.lang.String message,
         java.lang.Object source,
         java.lang.Throwable ex)
Parameters:
priority -
message -
source -
ex -

setLevel

void setLevel(int level)
sets the debug level

Parameters:
level -

getLevel

int getLevel()
Returns:
the debug level

isDebug

boolean isDebug()
Debugging log is enabled.

Returns:
true if the log level is DEBUG, otherwise false

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org