org.jwarp.service.log
Interface ILogWriter

All Superinterfaces:
IConfigurable
All Known Implementing Classes:
LogWriter

public interface ILogWriter
extends IConfigurable

Interface implementing a log writer.

Version:
1.0
Author:
Martin Schaefer

Field Summary
static int LOG_LEVEL_ALL
           
static int LOG_LEVEL_DEBUG
           
static int LOG_LEVEL_ERROR
           
static int LOG_LEVEL_FATAL_ERROR
           
static int LOG_LEVEL_INFO
           
static int LOG_LEVEL_NONE
           
static int LOG_LEVEL_UNKNOWN
           
static int LOG_LEVEL_WARNING
           
 
Method Summary
 void addLogListener(ILogListener listener)
          Add a new LogListener
 int getLogLevel()
          Returns the current active log level.
 java.lang.String getLogName()
           
 void log(java.lang.Exception exception)
          Log an exception.
 void log(java.lang.Exception exception, int logLevel)
          Log an exception.
 void log(LogEvent event)
          Log an event
 void log(java.lang.String message, int logLevel)
          Log an message
 void logDebug(java.lang.String message)
          Log a message.
 void logError(java.lang.String message)
          Log a message.
 void logInformation(java.lang.String message)
          Log a message.
 void logWarning(java.lang.String message)
          Log a message.
 void removeAllLogListeners()
          Removes all log listeners
 void setLogLevel(int level)
          Set the current log level.
 
Methods inherited from interface org.jwarp.service.configuration.IConfigurable
configure
 

Field Detail

LOG_LEVEL_UNKNOWN

public static final int LOG_LEVEL_UNKNOWN

LOG_LEVEL_NONE

public static final int LOG_LEVEL_NONE

LOG_LEVEL_FATAL_ERROR

public static final int LOG_LEVEL_FATAL_ERROR

LOG_LEVEL_ERROR

public static final int LOG_LEVEL_ERROR

LOG_LEVEL_WARNING

public static final int LOG_LEVEL_WARNING

LOG_LEVEL_DEBUG

public static final int LOG_LEVEL_DEBUG

LOG_LEVEL_INFO

public static final int LOG_LEVEL_INFO

LOG_LEVEL_ALL

public static final int LOG_LEVEL_ALL
Method Detail

getLogName

public java.lang.String getLogName()

addLogListener

public void addLogListener(ILogListener listener)
Add a new LogListener
Parameters:
listener - The listener to add
logLevel - Log-level to start with

removeAllLogListeners

public void removeAllLogListeners()
Removes all log listeners

log

public void log(LogEvent event)
Log an event
Parameters:
event - The event to log

log

public void log(java.lang.String message,
                int logLevel)
Log an message
Parameters:
message - Message for the log
logLevel - log level of the message

log

public void log(java.lang.Exception exception,
                int logLevel)
Log an exception.
Parameters:
exception - The exception to log
logLevel - log level of the exception

log

public void log(java.lang.Exception exception)
Log an exception. The exception will be logged as error
Parameters:
exception - The exception to log

logInformation

public void logInformation(java.lang.String message)
Log a message. The message will be logged as information
Parameters:
message - The message to log

logWarning

public void logWarning(java.lang.String message)
Log a message. The message will be logged as warning
Parameters:
message - The message to log

logError

public void logError(java.lang.String message)
Log a message. The message will be logged as error
Parameters:
message - The message to log

logDebug

public void logDebug(java.lang.String message)
Log a message. The message will be logged as debug information
Parameters:
message - The message to log

getLogLevel

public int getLogLevel()
Returns the current active log level.
Returns:
The current log level.

setLogLevel

public void setLogLevel(int level)
Set the current log level.
Parameters:
level - The new log level

©   O R C A   S y s t e m s