|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated public interface LoggerInterface
Logger Interface.
This interface is used by Logging Service clients to send messages to various logging output destinations.
Field Summary | |
---|---|
static int |
DEBUG
Deprecated. The DEBUG level designates
informational events that are most useful to debug an
application. |
static int |
ERROR
Deprecated. The ERROR level designates error events that
might still allow the application to continue running. |
static int |
FATAL
Deprecated. The FATAL level designates very severe error
events that will presumably lead the application to abort. |
static int |
INFO
Deprecated. The INFO level designates informational messages
that highlight the progress of the application. |
static java.lang.String |
SYSTEM_ERR
Deprecated. Used by addConsoleOutput(String)
to specify an output destination of System.err. |
static java.lang.String |
SYSTEM_OUT
Deprecated. Used by addConsoleOutput(String)
to specify an output destination of System.out. |
static int |
WARN
Deprecated. The WARN level designates potentially harmful situations. |
Method Summary | |
---|---|
void |
addArmOutput()
Deprecated. Add Application Response Measurement (ARM) output for this logger. |
void |
addConsoleOutput(java.lang.String destination)
Deprecated. Add a console output destination for this Logger. |
void |
addConsoleOutput(java.lang.String destination,
java.lang.String pattern)
Deprecated. Add a console output destination for this Logger. |
void |
addFileOutput(java.lang.String filename)
Deprecated. Add a file output destination for this Logger. |
void |
addFileOutput(java.lang.String filename,
java.lang.String pattern)
Deprecated. Add a file output destination for this Logger. |
void |
addSocketOutput(java.lang.String host,
int port)
Deprecated. Add a socket output destination for this Logger. |
void |
addSocketOutput(java.lang.String host,
int port,
java.lang.String pattern)
Deprecated. Add a socket output destination for this Logger. |
void |
debug(java.lang.Object message)
Deprecated. Send a debug message to the log. |
void |
debug(java.lang.Object message,
java.lang.String loggingContext)
Deprecated. Send a debug message to the log, including the current session context ID. |
void |
debug(java.lang.Object message,
java.lang.String loggingContext,
java.lang.Throwable t)
Deprecated. Send a debug message to the log along with an exception and its stack trace, including the current session context ID. |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Deprecated. Send a debug message to the log along with an exception and its stack trace. |
void |
destroy()
Deprecated. It is no longer necessary for a client to invoke this method. This method will eventually be removed from the interface. |
void |
error(java.lang.Object message)
Deprecated. Send an error message to the log. |
void |
error(java.lang.Object message,
java.lang.String loggingContext)
Deprecated. Send an error message to the log, including the current session context ID. |
void |
error(java.lang.Object message,
java.lang.String loggingContext,
java.lang.Throwable t)
Deprecated. Send an error message to the log along with an exception and its stack trace, including the current session context ID. |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Deprecated. Send an error message to the log along with an exception and its stack trace. |
void |
fatal(java.lang.Object message)
Deprecated. Send a fatal message to the log. |
void |
fatal(java.lang.Object message,
java.lang.String loggingContext)
Deprecated. Send a fatal message to the log, including the current session context ID. |
void |
fatal(java.lang.Object message,
java.lang.String loggingContext,
java.lang.Throwable t)
Deprecated. Send a fatal message to the log along with an exception and its stack trace, including the current session context ID. |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Deprecated. Send a fatal message to the log along with an exception and its stack trace. |
MessageCount |
getMessageCount()
Deprecated. Get singleton MessageCount object, which contains current logging message counts. |
int |
getPriority()
Deprecated. Get Priority. |
void |
info(java.lang.Object message)
Deprecated. Send an info message to the log. |
void |
info(java.lang.Object message,
java.lang.String loggingContext)
Deprecated. Send an info message to the log, including the current session context ID. |
void |
info(java.lang.Object message,
java.lang.String loggingContext,
java.lang.Throwable t)
Deprecated. Send an info message to the log along with an exception and its stack trace, including the current session context ID. |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Deprecated. Send an info message to the log along with an exception and its stack trace. |
boolean |
isChained()
Deprecated. Get the current setting of Chained. |
boolean |
isDebugEnabled()
Deprecated. Check for logging enabled at debug level. |
boolean |
isDebugEnabled(java.lang.String loggingContext)
Deprecated. Check for logging enabled at debug level. |
boolean |
isInfoEnabled()
Deprecated. Check for logging enabled at info level. |
boolean |
isInfoEnabled(java.lang.String loggingContext)
Deprecated. Check for logging enabled at info level. |
boolean |
isLevelEnabled(int level)
Deprecated. Check for logging enabled at specified level. |
boolean |
isLevelEnabled(int level,
java.lang.String loggingContext)
Deprecated. Check for logging enabled at specified level. |
boolean |
isMessageCounting()
Deprecated. Query messasge counting on or off. |
void |
log(int level,
java.lang.Object message)
Deprecated. Send a message to the log. |
void |
log(int level,
java.lang.Object message,
java.lang.String loggingContext)
Deprecated. Send a message to the log, including the current session context ID. |
void |
log(int level,
java.lang.Object message,
java.lang.String loggingContext,
java.lang.Throwable t)
Deprecated. Send a message to the log along with an exception and its stack trace, including the current session context ID. |
void |
log(int level,
java.lang.Object message,
java.lang.Throwable t)
Deprecated. Send a message to the log along with an exception and its stack trace. |
void |
removeAllOutputs()
Deprecated. Remove all output destinations for this Logger. |
void |
removeArmOutput()
Deprecated. Remove Application Response Measurement (ARM) output for this logger. |
void |
removeConsoleOutput(java.lang.String destination)
Deprecated. Remove a console output destination for this Logger. |
void |
removeFileOutput(java.lang.String filename)
Deprecated. Remove a file output destination for this Logger. |
void |
removeSocketOutput(java.lang.String host,
int port)
Deprecated. Remove a socket output destination for this Logger. |
void |
setChained(boolean chained)
Deprecated. When Chained is true ( the default ) then logging outputs are written to additively based on settings up the Logger inheritence chain. |
void |
setMessageCounting(boolean value)
Deprecated. Turn message counting on or off. |
void |
setPriority(int level)
Deprecated. Set Priority. |
void |
setSessionContext(SessionContextInterface sessionContext)
Deprecated. This method should not be used. Client code should use the LoggingService LoggingService.getLogger(String, SessionContextInterface)
method to specify the session context. This method will eventually
be removed from the interface. |
void |
warn(java.lang.Object message)
Deprecated. Send a warning message to the log. |
void |
warn(java.lang.Object message,
java.lang.String loggingContext)
Deprecated. Send a warning message to the log, including the current session context ID. |
void |
warn(java.lang.Object message,
java.lang.String loggingContext,
java.lang.Throwable t)
Deprecated. Send a warning message to the log along with an exception and its stack trace, including the current session context ID. |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Deprecated. Send a warning message to the log along with an exception and its stack trace. |
Field Detail |
---|
static final java.lang.String SYSTEM_OUT
addConsoleOutput(String)
to specify an output destination of System.out.
static final java.lang.String SYSTEM_ERR
addConsoleOutput(String)
to specify an output destination of System.err.
static final int FATAL
FATAL
level designates very severe error
events that will presumably lead the application to abort.
static final int ERROR
ERROR
level designates error events that
might still allow the application to continue running.
static final int WARN
WARN
level designates potentially harmful situations.
static final int INFO
INFO
level designates informational messages
that highlight the progress of the application.
static final int DEBUG
DEBUG
level designates
informational events that are most useful to debug an
application.
Method Detail |
---|
void log(int level, java.lang.Object message)
level
- of priority of message. See
Writing log messages from your code
for a description of priority levels.message
- to be sent to log.void log(int level, java.lang.Object message, java.lang.Throwable t)
level
- of priority of message. See
Writing log messages from your code
for a description of priority levels.message
- to be sent to log.t
- the exception to log, including its stack trace.void log(int level, java.lang.Object message, java.lang.String loggingContext)
level
- of priority of message. See
Writing log messages from your code
for a description of priority levels.message
- to be sent to log.loggingContext
- of the message. See
Hierarchical name space of logging contexts
for a description of logging contexts.void log(int level, java.lang.Object message, java.lang.String loggingContext, java.lang.Throwable t)
level
- of priority of message. See
Writing log messages from your code
for a description of priority levels.message
- to be sent to log.loggingContext
- logging context to associate with this message. See
Hierarchical name space of logging contexts
for a description of logging contexts.t
- the exception to log, including its stack trace.boolean isLevelEnabled(int level)
level
- of logging desired. See
Writing log messages from your code
for a description of priority levels.
boolean isLevelEnabled(int level, java.lang.String loggingContext)
level
- of logging desired. See
Writing log messages from your code
for a description of priority levels.loggingContext
- of the message. See
Hierarchical name space of logging contexts
for a description of logging contexts.
void debug(java.lang.Object message)
message
- to be sent to log.void debug(java.lang.Object message, java.lang.Throwable t)
message
- to be sent to log.t
- the exception to log, including its stack trace.void debug(java.lang.Object message, java.lang.String loggingContext)
message
- to be sent to log.loggingContext
- of the message. See
Hierarchical name space of logging contexts
for a description of logging contexts.void debug(java.lang.Object message, java.lang.String loggingContext, java.lang.Throwable t)
message
- to be sent to log.loggingContext
- logging context to associate with this message. See
Hierarchical name space of logging contexts
for a description of logging contexts.t
- the exception to log, including its stack trace.boolean isDebugEnabled()
boolean isDebugEnabled(java.lang.String loggingContext)
loggingContext
- of the message. See
Hierarchical name space of logging contexts
for a description of logging contexts.
void info(java.lang.Object message)
message
- to be sent to log.void info(java.lang.Object message, java.lang.Throwable t)
message
- to be sent to log.t
- the exception to log, including its stack trace.void info(java.lang.Object message, java.lang.String loggingContext)
message
- to be sent to log.loggingContext
- of the message. See
Hierarchical name space of logging contexts
for a description of logging contexts.void info(java.lang.Object message, java.lang.String loggingContext, java.lang.Throwable t)
message
- to be sent to log.loggingContext
- logging context to associate with this message. See
Hierarchical name space of logging contexts
for a description of logging contexts.t
- the exception to log, including its stack trace.boolean isInfoEnabled()
boolean isInfoEnabled(java.lang.String loggingContext)
loggingContext
- of the message. See
Hierarchical name space of logging contexts
for a description of logging contexts.
void warn(java.lang.Object message)
message
- to be sent to log.void warn(java.lang.Object message, java.lang.Throwable t)
message
- to be sent to log.t
- the exception to log, including its stack trace.void warn(java.lang.Object message, java.lang.String loggingContext)
message
- to be sent to log.loggingContext
- of the message. See
Hierarchical name space of logging contexts
for a description of logging contexts.void warn(java.lang.Object message, java.lang.String loggingContext, java.lang.Throwable t)
message
- to be sent to log.loggingContext
- logging context to associate with this message. See
Hierarchical name space of logging contexts
for a description of logging contexts.t
- the exception to log, including its stack trace.void error(java.lang.Object message)
message
- to be sent to log.void error(java.lang.Object message, java.lang.Throwable t)
message
- to be sent to log.t
- the exception to log, including its stack trace.void error(java.lang.Object message, java.lang.String loggingContext)
message
- to be sent to log.loggingContext
- of the message. See
Hierarchical name space of logging contexts
for a description of logging contexts.void error(java.lang.Object message, java.lang.String loggingContext, java.lang.Throwable t)
message
- to be sent to log.loggingContext
- logging context to associate with this message. See
Hierarchical name space of logging contexts
for a description of logging contexts.t
- the exception to log, including its stack trace.void fatal(java.lang.Object message)
message
- to be sent to log.void fatal(java.lang.Object message, java.lang.Throwable t)
message
- to be sent to log.t
- the exception to log, including its stack trace.void fatal(java.lang.Object message, java.lang.String loggingContext)
message
- to be sent to log.loggingContext
- of the message. See
Hierarchical name space of logging contexts
for a description of logging contexts.void fatal(java.lang.Object message, java.lang.String loggingContext, java.lang.Throwable t)
message
- to be sent to log.loggingContext
- logging context to associate with this message. See
Hierarchical name space of logging contexts
for a description of logging contexts.t
- the exception to log, including its stack trace.void addConsoleOutput(java.lang.String destination)
destination
- should be one of LoggerInterface.SYSTEM_OUT
or LoggerInterface.SYSTEM_ERRvoid addConsoleOutput(java.lang.String destination, java.lang.String pattern)
destination
- should be one of LoggerInterface.SYSTEM_OUT
or LoggerInterface.SYSTEM_ERRpattern
- conversion string to control format of output.
See
Pattern Layout for easy formatting of output for details on the
pattern string.void removeConsoleOutput(java.lang.String destination)
destination
- should be one of LoggerInterface.SYSTEM_OUT
or LoggerInterface.SYSTEM_ERRvoid addFileOutput(java.lang.String filename) throws java.io.IOException
filename
- to receive log messages. The filename is relative to
the system the Logger is running on, so that with a remote Logger the file
may not be located on the system the client application is running on.
java.io.IOException
void addFileOutput(java.lang.String filename, java.lang.String pattern) throws java.io.IOException
filename
- to receive log messages. The filename is relative to
the system the Logger is running on, so that with a remote Logger the file
may not be located on the system the client application is running on.pattern
- conversion string to control format of output.
See
Pattern Layout for easy formatting of output for details on the
pattern string.
java.io.IOException
void removeFileOutput(java.lang.String filename)
filename
- that has been receiving log messages.void addSocketOutput(java.lang.String host, int port)
host
- to receive log messages.port
- on host to receive log messages.void addSocketOutput(java.lang.String host, int port, java.lang.String pattern)
host
- to receive log messages.port
- on host to receive log messages.pattern
- conversion string to control format of output.
See
Pattern Layout for easy formatting of output for details on the
pattern string.void removeSocketOutput(java.lang.String host, int port)
host
- receiving log messages.port
- on host receiving log messages.void addArmOutput()
void removeArmOutput()
void removeAllOutputs()
void setChained(boolean chained)
chained
- true or false to set Chained state.boolean isChained()
void setSessionContext(SessionContextInterface sessionContext)
LoggingService.getLogger(String, SessionContextInterface)
method to specify the session context. This method will eventually
be removed from the interface.
void setPriority(int level)
level
- priority level.int getPriority()
Looks through the inheritance hierarchy to determine priority. The returned value will not necessarily be equal to one of the predefined priorities (DEBUG, INFO, WARN, ERROR, etc.).
MessageCount getMessageCount()
void setMessageCounting(boolean value)
value
- true or false. If true, message counting is turned on.boolean isMessageCounting()
void destroy()
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |