Avaya Conferencinge Plugable Logging API

com.avaya.conferencing.logging
Interface LogWorker

All Known Implementing Classes:
Logger

public interface LogWorker

Implementations of this class send log messages to the real logging framework.

Since:
5.1.0.0.0

Field Summary
static LogMessage EXCEPTION_WITH_NO_MESSAGE
          The LogMessage to use for a logging an exception with no message.
 
Method Summary
 java.lang.String format(LogMessage message)
          Formats a log message and returns the formatted string.
 java.lang.String format(LogMessage message, java.lang.Object... args)
          Formats a log message and returns the formatted string.
 java.lang.String format(LogMessage message, java.lang.Object arg1)
          Formats a log message and returns the formatted string.
 boolean isEnabledFor(Level level)
          Indicates whether the specified Level is enabled for the underlying framework
 void log(Level level, LogMessage message)
          A General purpose logging method, where the caller must specify a level
 void log(Level level, LogMessage message, java.lang.Object... args)
          A General purpose logging method, where the caller must specify a level
 void log(Level level, LogMessage message, java.lang.Object arg1)
          A General purpose logging method, where the caller must specify a level
 void log(Level level, java.lang.Throwable throwable)
          A General purpose logging method, where the caller must specify a level
 void log(Level level, java.lang.Throwable throwable, LogMessage message)
          A General purpose logging method, where the caller must specify a level
 void log(Level level, java.lang.Throwable throwable, LogMessage message, java.lang.Object... args)
          A General purpose logging method, where the caller must specify a level
 void log(Level level, java.lang.Throwable throwable, LogMessage message, java.lang.Object arg1)
          A General purpose logging method, where the caller must specify a level
 

Field Detail

EXCEPTION_WITH_NO_MESSAGE

static final LogMessage EXCEPTION_WITH_NO_MESSAGE
The LogMessage to use for a logging an exception with no message.

Method Detail

format

java.lang.String format(LogMessage message)
Formats a log message and returns the formatted string.

Parameters:
message - the message to log
Returns:
The formatted message
Since:
5.1.0.0.3

format

java.lang.String format(LogMessage message,
                        java.lang.Object arg1)
Formats a log message and returns the formatted string.

Parameters:
message - the message to log
arg1 - The argument to parse INTO the message
Returns:
The formatted message
Since:
5.1.0.0.3

format

java.lang.String format(LogMessage message,
                        java.lang.Object... args)
Formats a log message and returns the formatted string.

Parameters:
message - the message to log
args - The list of arguments to parse INTO the message
Returns:
The formatted message
Since:
5.1.0.0.0

isEnabledFor

boolean isEnabledFor(Level level)
Indicates whether the specified Level is enabled for the underlying framework

Parameters:
level - The Level that we need to check
Returns:
Whether the Level is enabled
Since:
5.1.0.0.0

log

void log(Level level,
         java.lang.Throwable throwable)
A General purpose logging method, where the caller must specify a level

Parameters:
level - The level to generate the log at
throwable - The exception
Since:
5.1.0.0.0

log

void log(Level level,
         LogMessage message)
A General purpose logging method, where the caller must specify a level

Parameters:
level - The level to generate the log at
message - The message to log
Since:
5.1.0.0.0

log

void log(Level level,
         LogMessage message,
         java.lang.Object... args)
A General purpose logging method, where the caller must specify a level

Parameters:
level - The level to generate the log at
message - The message to log
args - The list of arguments to parse INTO the message
Since:
5.1.0.0.0

log

void log(Level level,
         LogMessage message,
         java.lang.Object arg1)
A General purpose logging method, where the caller must specify a level

Parameters:
level - The level to generate the log at
message - The message to log
arg1 - The arguments to parse INTO the message
Since:
5.1.0.0.0

log

void log(Level level,
         java.lang.Throwable throwable,
         LogMessage message)
A General purpose logging method, where the caller must specify a level

Parameters:
level - The level to generate the log at
throwable - The exception
message - The message to log
Since:
5.1.0.0.0

log

void log(Level level,
         java.lang.Throwable throwable,
         LogMessage message,
         java.lang.Object... args)
A General purpose logging method, where the caller must specify a level

Parameters:
level - The level to generate the log at
throwable - The exception
message - The message to log
args - The list of arguments to parse INTO the message
Since:
5.1.0.0.0

log

void log(Level level,
         java.lang.Throwable throwable,
         LogMessage message,
         java.lang.Object arg1)
A General purpose logging method, where the caller must specify a level

Parameters:
level - The level to generate the log at
throwable - The exception
message - The message to log
arg1 - The argument to parse INTO the message
Since:
5.1.0.0.0

Avaya Conferencinge Plugable Logging API

Copyright © 2008-2009 Avaya, Inc. Licensed under the Apache License, Version 2.0.