|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ryanm.logging.LoggingManager
public class LoggingManager
The main logging class.
| Constructor Summary | |
|---|---|
LoggingManager()
|
|
| Method Summary | |
|---|---|
static void |
addAssociationListener(AssociationListener listener)
Adds an AssociationListener to the LoggingManager. |
static void |
addSinkRegistrationListener(SinkRegistrationListener listener)
Adds an SinkRegistrationListener to the LoggingManager. |
static void |
addSourceRegistrationListener(SourceRegistrationListener listener)
Adds an SourceRegistrationListener to the
LoggingManager. |
static void |
associate(java.lang.String source,
LogSink sink)
Associates a sink to a source. |
static void |
deregister(LogSink sink)
Deregisters a sink. |
static void |
deregister(java.lang.String source)
Removes a source from the registration list. |
static void |
disassociate(java.lang.String source,
LogSink sink)
Removes an association between a source and sink. |
static Configurator |
getConfigurator()
Gets a configurator that can control the logging system |
static java.util.List<LogSink> |
getRegisteredSinks()
Returns a list of registered sinks. |
static java.util.List<java.lang.String> |
getRegisteredSources()
Returns a list of all registered sources. |
static java.util.List<java.lang.String> |
getRegisteredSources(LogSink sink)
Generates a list of all the registered sources that a particular sink is associated with |
static void |
log(java.lang.String source,
java.lang.String message)
Logs a message. |
static void |
log(java.lang.String source,
java.lang.String message,
java.lang.Object param)
Logs a message. |
static void |
register(LogSink sink)
Registers a sink. |
static void |
register(java.lang.String source)
Registers a source. |
static void |
removeAssociationListener(AssociationListener listener)
Removes an AssociationListener from the LoggingManager. |
static void |
removeSinkRegistrationListener(SinkRegistrationListener listener)
Removes an SinkRegistrationListener from the
LoggingManager. |
static void |
removeSourceRegistrationListener(SourceRegistrationListener listener)
Removes an SourceRegistrationListener from the
LoggingManager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoggingManager()
| Method Detail |
|---|
public static void associate(java.lang.String source,
LogSink sink)
source - The source of messagessink - The sink that should process messages from the source
public static void disassociate(java.lang.String source,
LogSink sink)
source - The source of messagessink - The sink that should no longer process messages from
that source
public static void log(java.lang.String source,
java.lang.String message)
LogSinks that are associated with the specified source
source - The source of the messagemessage - The body of the message
public static void log(java.lang.String source,
java.lang.String message,
java.lang.Object param)
LogSinks that are associated with the specified source
source - The source of the messagemessage - The message bodyparam - Parameters to the messagepublic static java.util.List<java.lang.String> getRegisteredSources()
public static java.util.List<java.lang.String> getRegisteredSources(LogSink sink)
sink - The sink to query
public static java.util.List<LogSink> getRegisteredSinks()
public static void register(java.lang.String source)
source - The source identifier to register.public static void deregister(java.lang.String source)
source - The source to deregisterpublic static void register(LogSink sink)
sink - The sink to register.public static void deregister(LogSink sink)
sink - The sink to deregister.public static void addAssociationListener(AssociationListener listener)
AssociationListener to the LoggingManager. The
listener will be notified of any changes to the status of the
LoggingManager
listener - The listener to register.public static void removeAssociationListener(AssociationListener listener)
AssociationListener from the LoggingManager.
The listener will no longer be notified of any changes to the
status of the LoggingManager.
listener - The listener to deregister.public static void addSinkRegistrationListener(SinkRegistrationListener listener)
SinkRegistrationListener to the LoggingManager.
The listener will be notified of any changes to the status of
the LoggingManager
listener - The listener to register.public static void removeSinkRegistrationListener(SinkRegistrationListener listener)
SinkRegistrationListener from the
LoggingManager. The listener will no longer be notified of any
changes to the status of the LoggingManager.
listener - The listener to deregister.public static void addSourceRegistrationListener(SourceRegistrationListener listener)
SourceRegistrationListener to the
LoggingManager. The listener will be notified of any changes to
the status of the LoggingManager
listener - The listener to register.public static void removeSourceRegistrationListener(SourceRegistrationListener listener)
SourceRegistrationListener from the
LoggingManager. The listener will no longer be notified of any
changes to the status of the LoggingManager.
listener - The listener to deregister.public static Configurator getConfigurator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||