|
Avaya Conferencinge Plugable Logging API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.avaya.conferencing.logging.Logger
public abstract class Logger
An interface defining the Avaye Logging API. This interface will allow callers to log messages from Avaye APIs that will be logged successfully to the client applications logging framework. The specific implementation of the logging API is loaded via SPI at run-time.
Logging methods are provided to generate logs in the lowest impact
manner (i.e. do not attempt generation of logs if the Logging framework's logging level will not allow the logs to be
written out). Utility methods are provided to allow multiple arguments to the logging messages to avoid String concatenation by the caller (in this case, the log message is only formatted when the logging level is
appropriate). Additionally, there is the format(LogMessage, Object...) method can be used to format a
log message to ensure that exception messages are localized in the same way as log messages.
| Field Summary | |
|---|---|
LogWorker |
AUDIT
The LogWorker for Audit log messages. |
LogWorker |
CORE
The LogWorker for Development / Internal log messages. |
LogWorker |
OPERATIONAL
The LogWorker for Operational log messages. |
LogWorker |
SECURITY
The LogWorker for Security log messages. |
| Fields inherited from interface com.avaya.conferencing.logging.LogWorker |
|---|
EXCEPTION_WITH_NO_MESSAGE |
| Constructor Summary | |
|---|---|
protected |
Logger(LogWorker COMMON)
Creates a Logger without separation for different classes of log events. |
protected |
Logger(LogWorker SECURITY,
LogWorker OPERATIONAL,
LogWorker AUDIT,
LogWorker CORE)
Creates a Logger with separation for different classes of log events. |
| 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. |
static Logger |
getLogger(java.lang.Class sourceClass)
Creates and returns a Logger using LoggerManager's global factory. |
boolean |
isEnabledFor(Level level)
Indicates whether the specified Level is enabled for the underlying
framework |
static java.util.ResourceBundle |
loadResourceBundle(java.lang.String resourceBundleName)
A helper method to load the named resource bundle. |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final LogWorker SECURITY
LogWorker for Security log messages.
public final LogWorker OPERATIONAL
LogWorker for Operational log messages.
public final LogWorker AUDIT
LogWorker for Audit log messages.
public final LogWorker CORE
LogWorker for Development / Internal log messages.
| Constructor Detail |
|---|
protected Logger(LogWorker COMMON)
COMMON - The log worker to use for all messages.
protected Logger(LogWorker SECURITY,
LogWorker OPERATIONAL,
LogWorker AUDIT,
LogWorker CORE)
SECURITY - The log worker to use for security log messages.OPERATIONAL - The log worker to use for operational log messages.AUDIT - The log worker to use for audit log messages.CORE - The log worker to use for development / internal log messages.| Method Detail |
|---|
public static Logger getLogger(java.lang.Class sourceClass)
Logger using LoggerManager's global factory.
sourceClass - the class that the Logger object is for, the class which will be the source of the
messages sent to the Logger.
Logger.public java.lang.String format(LogMessage message)
format in interface LogWorkermessage - the message to log
public java.lang.String format(LogMessage message,
java.lang.Object arg1)
format in interface LogWorkermessage - the message to logarg1 - The argument to parse INTO the message
public java.lang.String format(LogMessage message,
java.lang.Object... args)
format in interface LogWorkermessage - the message to logargs - The list of arguments to parse INTO the message
public boolean isEnabledFor(Level level)
Level is enabled for the underlying
framework
isEnabledFor in interface LogWorkerlevel - The Level that we need to check
Level is enabled
public void log(Level level,
java.lang.Throwable throwable)
log in interface LogWorkerlevel - The level to generate the log atthrowable - The exception
public void log(Level level,
LogMessage message)
log in interface LogWorkerlevel - The level to generate the log atmessage - The message to log
public void log(Level level,
LogMessage message,
java.lang.Object... args)
log in interface LogWorkerlevel - The level to generate the log atmessage - The message to logargs - The list of arguments to parse INTO the message
public void log(Level level,
LogMessage message,
java.lang.Object arg1)
log in interface LogWorkerlevel - The level to generate the log atmessage - The message to logarg1 - The arguments to parse INTO the message
public void log(Level level,
java.lang.Throwable throwable,
LogMessage message)
log in interface LogWorkerlevel - The level to generate the log atthrowable - The exceptionmessage - The message to log
public void log(Level level,
java.lang.Throwable throwable,
LogMessage message,
java.lang.Object... args)
log in interface LogWorkerlevel - The level to generate the log atthrowable - The exceptionmessage - The message to logargs - The list of arguments to parse INTO the message
public void log(Level level,
java.lang.Throwable throwable,
LogMessage message,
java.lang.Object arg1)
log in interface LogWorkerlevel - The level to generate the log atthrowable - The exceptionmessage - The message to logarg1 - The argument to parse INTO the messagepublic static java.util.ResourceBundle loadResourceBundle(java.lang.String resourceBundleName)
resourceBundleName - the resource bundle name.
null if no resource bundle could be found.
|
Avaya Conferencinge Plugable Logging API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||