|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ryanm.logging.AbstractSink
com.ryanm.logging.StringSink
public abstract class StringSink
Eases implementation of simple LogSinks by handling the conversion of a logMessage to a human-readable String.
| Nested Class Summary | |
|---|---|
protected class |
StringSink.StringSinkConfigurator
Configurator for variables common to all LogSinks that
produce String-based output |
| Constructor Summary | |
|---|---|
StringSink(java.lang.String title)
|
|
| Method Summary | |
|---|---|
Configurator |
getConfigurator()
Gets a Configurator object that describes and can manipulate the variables of this Configurable. |
void |
log(com.ryanm.logging.LogMessage message)
Logs the specified message to this sink |
protected abstract void |
writeString(java.lang.String s)
This should be overridden to write the supplied string to wherever, stdOut, a file, something like that. |
| Methods inherited from class com.ryanm.logging.AbstractSink |
|---|
addSinkListener, getTitle, notifyListeners, removeSinkListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringSink(java.lang.String title)
title - | Method Detail |
|---|
public void log(com.ryanm.logging.LogMessage message)
LogSink
message - The message to logprotected abstract void writeString(java.lang.String s)
s - The String to writepublic Configurator getConfigurator()
Configurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||