com.sap.tc.logging
Class LoggingManager
java.lang.Object
|
+--com.sap.tc.logging.ExceptionHandling
|
+--com.sap.tc.logging.LoggingManager
- All Implemented Interfaces:
- EventDispatcher
- public class LoggingManager
- extends ExceptionHandling
- implements EventDispatcher
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getLoggingManager
public static LoggingManager getLoggingManager()
registerRuntimePropertiesPublisher
public static void registerRuntimePropertiesPublisher(IRPPublisher runPropPublisher)
- To add a publisher of the runtime properies
- Parameters:
IRPPublisher - Instance of Runtime properties publisher
addListener
public void addListener(EventListener listener)
throws java.lang.IllegalArgumentException
- To add a listener to the logging tool
- Specified by:
addListener in interface EventDispatcher
- Parameters:
listener - The event listener to be added- Throws:
java.lang.IllegalArgumentException - Invalid listener type.
Current valid types: NewLogListener,
RemoveLogListener,
OverwriteLogfileListener,
CreateLogfileListener,
ResetLogControllerListener.
removeListener
public void removeListener(EventListener listener)
throws java.lang.IllegalArgumentException
- To remove a listener from the logging tool. If the listener does not exist
at all, do nothing.
- Specified by:
removeListener in interface EventDispatcher
- Parameters:
listener - The event listener to be removed- Throws:
java.lang.IllegalArgumentException - Invalid listener type
Current valid types: NewLogListener,
RemoveLogListener,
OverwriteLogfileListener,
CreateLogfileListener,
ResetLogControllerListener.
getAllLogs
public java.util.Collection getAllLogs()
reset
public void reset()