deegree 2.1 (2007/11/08 09:57 build-328-official)

org.deegree.framework.log
Class JavaLogger

java.lang.Object
  extended by org.deegree.framework.log.LoggerService
      extended by org.deegree.framework.log.JavaLogger
All Implemented Interfaces:
ILogger

final class JavaLogger
extends LoggerService

Log service provided by Java logging API.
The log environment is fully configurable using a configuration file. The configuration file name is logging.properties.

Since:
2.0
Version:
2.0, $Revision: 6259 $, $Date: 2007-03-20 10:15:15 +0100 (Di, 20 Mär 2007) $
Author:
Torsten Friebe , last edited by: $Author: bezema $
See Also:
Java Logging Overview

Field Summary
 
Fields inherited from class org.deegree.framework.log.LoggerService
defaultChannelName
 
Fields inherited from interface org.deegree.framework.log.ILogger
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING
 
Constructor Summary
JavaLogger()
           
 
Method Summary
 void bindClass(Class class1)
           
 void bindClass(String string)
           
 int getLevel()
           
 boolean isDebug()
          Debugging log is enabled.
 void log(int i, String string, Object object, Throwable throwable)
           
 void log(int i, String string, Throwable throwable)
           
 void logDebug(String string)
          Log debug message
 void logDebug(String string, Object object)
           
 void logDebug(String string, Throwable throwable)
          Log debug message.
 void logError(String string)
          Log error message.
 void logError(String string, Throwable throwable)
          Log error with exception
 void logInfo(String string)
          Log info message
 void logInfo(String string, Object object)
           
 void logInfo(String string, Throwable throwable)
          Log info message
 void logWarning(String string)
          Log warning message
 void logWarning(String string, Throwable throwable)
          Log warning message with exception
 void setLevel(int level)
          sets the debug level
 String toString()
           
 
Methods inherited from class org.deegree.framework.log.LoggerService
entering, entering, entering, exiting, exiting, exiting, init, logDebugBinaryFile, logDebugBinaryFile, logDebugFile, logDebugFile, logDebugXMLFile, logError, sendMail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaLogger

JavaLogger()
Method Detail

bindClass

public void bindClass(String string)
See Also:
ILogger.bindClass(java.lang.String)

bindClass

public void bindClass(Class class1)
See Also:
ILogger.bindClass(java.lang.Class)

logDebug

public void logDebug(String string,
                     Throwable throwable)
Description copied from class: LoggerService
Log debug message.

Specified by:
logDebug in interface ILogger
Specified by:
logDebug in class LoggerService
Parameters:
string - the log message
throwable - the exception to be logged
See Also:
ILogger.logDebug(java.lang.String, java.lang.Throwable)

logInfo

public void logInfo(String string,
                    Throwable throwable)
Description copied from class: LoggerService
Log info message

Specified by:
logInfo in interface ILogger
Specified by:
logInfo in class LoggerService
Parameters:
string - the log message
throwable - the exception to be logged
See Also:
ILogger.logInfo(java.lang.String, java.lang.Throwable)

logWarning

public void logWarning(String string,
                       Throwable throwable)
Description copied from class: LoggerService
Log warning message with exception

Specified by:
logWarning in interface ILogger
Specified by:
logWarning in class LoggerService
Parameters:
string - the log message
throwable - the exception to be logged
See Also:
ILogger.logWarning(java.lang.String, java.lang.Throwable)

logError

public void logError(String string,
                     Throwable throwable)
Description copied from interface: ILogger
Log error with exception

Parameters:
string - the log message
throwable - the exception to be logged
See Also:
ILogger.logError(java.lang.String, java.lang.Throwable)

logDebug

public void logDebug(String string)
Description copied from class: LoggerService
Log debug message

Specified by:
logDebug in interface ILogger
Specified by:
logDebug in class LoggerService
Parameters:
string - the log message
See Also:
ILogger.logDebug(java.lang.String)

logInfo

public void logInfo(String string)
Description copied from class: LoggerService
Log info message

Specified by:
logInfo in interface ILogger
Specified by:
logInfo in class LoggerService
Parameters:
string - the log message
See Also:
ILogger.logInfo(java.lang.String)

logWarning

public void logWarning(String string)
Description copied from class: LoggerService
Log warning message

Specified by:
logWarning in interface ILogger
Specified by:
logWarning in class LoggerService
Parameters:
string - the log message
See Also:
ILogger.logWarning(java.lang.String)

logError

public void logError(String string)
Description copied from interface: ILogger
Log error message.

Parameters:
string - the log message
See Also:
ILogger.logError(java.lang.String)

logInfo

public void logInfo(String string,
                    Object object)
See Also:
ILogger.logInfo(java.lang.String, java.lang.Object)

logDebug

public void logDebug(String string,
                     Object object)
See Also:
ILogger.logDebug(java.lang.String, java.lang.Object)

log

public void log(int i,
                String string,
                Throwable throwable)
See Also:
ILogger.log(int, java.lang.String, java.lang.Throwable)

log

public void log(int i,
                String string,
                Object object,
                Throwable throwable)
See Also:
ILogger.log(int, java.lang.String, java.lang.Object, java.lang.Throwable)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getLevel

public int getLevel()
Returns:
the debug level
See Also:
ILogger.getLevel()

setLevel

public void setLevel(int level)
Description copied from interface: ILogger
sets the debug level

See Also:
ILogger.setLevel(int)

isDebug

public boolean isDebug()
Description copied from interface: ILogger
Debugging log is enabled.

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

deegree 2.1 (2007/11/08 09:57 build-328-official)

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