|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.logging.ApplicationLoggingImpl
public class ApplicationLoggingImpl
This is a straightforward implementation of ApplicationLogging that sends events to LogListeners.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
ApplicationLoggingImpl()
Creates a new ApplicationLoggingImpl |
|
ApplicationLoggingImpl(java.lang.String pLoggingIdentifier)
Creates a new ApplicationLoggingImpl with the specified originator that will be applied to all logging messages. |
|
ApplicationLoggingImpl(java.lang.String pLoggingIdentifier,
boolean pAutoInitListeners)
Creates a new ApplicationLoggingImpl with the specified originator that will be applied to all logging messages. |
Method Summary | |
---|---|
protected void |
addGlobalLogListeners()
|
void |
addLogListener(LogListener pListener)
Adds a listener to the list of log listeners |
ApplicationLogging |
getLoggingForVlogging()
Return the application logging to use for variable argument logging. |
java.lang.String |
getLoggingIdentifer()
Deprecated. Use the correctly spelled loggingIdentifier property |
java.lang.String |
getLoggingIdentifier()
Returns property LoggingIdentifier |
int |
getLogListenerCount()
Returns the number of log listeners |
LogListener[] |
getLogListeners()
Return an array representing the list of LogListeners. |
void |
initializeFromServiceEvent(ServiceEvent pEvent)
Initialize this component from a service event. |
boolean |
isAutoInitListeners()
Whether to automatically initialize the log listeners with the list from the Global Nucleus. |
boolean |
isLoggingDebug()
This method returns whether or not an debug log event should be broadcast. |
boolean |
isLoggingError()
This method returns whether or not an error log event should be broadcast. |
boolean |
isLoggingInfo()
This method returns whether or not an info log event should be broadcast. |
boolean |
isLoggingTrace()
This method returns whether or not an trace log event should be broadcast. |
boolean |
isLoggingWarning()
This method returns whether or not an warning log event should be broadcast. |
void |
logDebug(java.lang.String pMessage)
Logs an debug event with the specified message |
void |
logDebug(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs an debug event with the specified message and Throwable |
void |
logDebug(java.lang.Throwable pThrowable)
Logs an debug event with the specified Throwable |
void |
logError(java.lang.String pMessage)
Logs an error event with the specified message |
void |
logError(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs an error event with the specified message and Throwable |
void |
logError(java.lang.Throwable pThrowable)
Logs an error event with the specified Throwable |
void |
logInfo(java.lang.String pMessage)
Logs an info event with the specified message |
void |
logInfo(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs an info event with the specified message and Throwable |
void |
logInfo(java.lang.Throwable pThrowable)
Logs an info event with the specified Throwable |
void |
logTrace(java.lang.String pMessage)
Logs an trace event with the specified message |
void |
logTrace(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs an trace event with the specified message and Throwable |
void |
logTrace(java.lang.Throwable pThrowable)
Logs an trace event with the specified Throwable |
void |
logWarning(java.lang.String pMessage)
Logs an warning event with the specified message |
void |
logWarning(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs an warning event with the specified message and Throwable |
void |
logWarning(java.lang.Throwable pThrowable)
Logs an warning event with the specified Throwable |
void |
removeLogListener(LogListener pListener)
Removes a listener from the list of log listeners |
void |
sendLogEvent(LogEvent pLogEvent)
Sends a LogEvent to all of the listeners |
void |
setAutoInitListeners(boolean pAutoInitListeners)
Whether to automatically initialize the log listeners with the list from the Global Nucleus. |
void |
setLoggingDebug(boolean pLogging)
Sets whether or not debug log events should be logged. |
void |
setLoggingError(boolean pLogging)
Sets whether or not error log events should be logged. |
void |
setLoggingIdentifier(java.lang.String pLoggingIdentifier)
Set the property LoggingIdentifier |
void |
setLoggingInfo(boolean pLogging)
Sets whether or not info log events should be logged. |
void |
setLoggingTrace(boolean pLogging)
Sets whether or not trace log events should be logged. |
void |
setLoggingWarning(boolean pLogging)
Sets whether or not warning log events should be logged. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public ApplicationLoggingImpl()
public ApplicationLoggingImpl(java.lang.String pLoggingIdentifier)
public ApplicationLoggingImpl(java.lang.String pLoggingIdentifier, boolean pAutoInitListeners)
Method Detail |
---|
public java.lang.String getLoggingIdentifier()
public void setLoggingIdentifier(java.lang.String pLoggingIdentifier)
public java.lang.String getLoggingIdentifer()
public void setAutoInitListeners(boolean pAutoInitListeners)
public boolean isAutoInitListeners()
public void initializeFromServiceEvent(ServiceEvent pEvent)
protected void addGlobalLogListeners()
public void addLogListener(LogListener pListener)
addLogListener
in interface atg.nucleus.logging.ApplicationLoggingSender
public void removeLogListener(LogListener pListener)
removeLogListener
in interface atg.nucleus.logging.ApplicationLoggingSender
public int getLogListenerCount()
getLogListenerCount
in interface atg.nucleus.logging.ApplicationLoggingSender
public void sendLogEvent(LogEvent pLogEvent)
public boolean isLoggingInfo()
isLoggingInfo
in interface ApplicationLogging
public void setLoggingInfo(boolean pLogging)
setLoggingInfo
in interface ApplicationLogging
public boolean isLoggingWarning()
isLoggingWarning
in interface ApplicationLogging
public void setLoggingWarning(boolean pLogging)
setLoggingWarning
in interface ApplicationLogging
public boolean isLoggingError()
isLoggingError
in interface ApplicationLogging
public void setLoggingError(boolean pLogging)
setLoggingError
in interface ApplicationLogging
public boolean isLoggingDebug()
isLoggingDebug
in interface ApplicationLogging
public void setLoggingDebug(boolean pLogging)
setLoggingDebug
in interface ApplicationLogging
public boolean isLoggingTrace()
isLoggingTrace
in interface atg.nucleus.logging.TraceApplicationLogging
isLoggingTrace
in class VariableArgumentApplicationLoggingImpl
public void setLoggingTrace(boolean pLogging)
setLoggingTrace
in interface atg.nucleus.logging.TraceApplicationLogging
public void logInfo(java.lang.String pMessage)
logInfo
in interface ApplicationLogging
public void logInfo(java.lang.Throwable pThrowable)
logInfo
in interface ApplicationLogging
public void logInfo(java.lang.String pMessage, java.lang.Throwable pThrowable)
logInfo
in interface ApplicationLogging
public void logWarning(java.lang.String pMessage)
logWarning
in interface ApplicationLogging
public void logWarning(java.lang.Throwable pThrowable)
logWarning
in interface ApplicationLogging
public void logWarning(java.lang.String pMessage, java.lang.Throwable pThrowable)
logWarning
in interface ApplicationLogging
public void logError(java.lang.String pMessage)
logError
in interface ApplicationLogging
public void logError(java.lang.Throwable pThrowable)
logError
in interface ApplicationLogging
public void logError(java.lang.String pMessage, java.lang.Throwable pThrowable)
logError
in interface ApplicationLogging
public void logDebug(java.lang.String pMessage)
logDebug
in interface ApplicationLogging
public void logDebug(java.lang.Throwable pThrowable)
logDebug
in interface ApplicationLogging
public void logDebug(java.lang.String pMessage, java.lang.Throwable pThrowable)
logDebug
in interface ApplicationLogging
public void logTrace(java.lang.String pMessage)
logTrace
in interface atg.nucleus.logging.TraceApplicationLogging
public void logTrace(java.lang.Throwable pThrowable)
logTrace
in interface atg.nucleus.logging.TraceApplicationLogging
public void logTrace(java.lang.String pMessage, java.lang.Throwable pThrowable)
logTrace
in interface atg.nucleus.logging.TraceApplicationLogging
public LogListener[] getLogListeners()
getLogListeners
in interface atg.nucleus.logging.ApplicationLoggingSender
public ApplicationLogging getLoggingForVlogging()
VariableArgumentApplicationLoggingImpl
getLoggingForVlogging
in class VariableArgumentApplicationLoggingImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |