|
||||||||||
| 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
com.ryanm.logging.FileSink
public class FileSink
Logs messages in human-readable format to the specified file. Each message is seperated by a line break
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.ryanm.logging.StringSink |
|---|
StringSink.StringSinkConfigurator |
| Constructor Summary | |
|---|---|
FileSink(java.lang.String fileName,
boolean append)
Constructs a filesink |
|
| Method Summary | |
|---|---|
Configurator |
getConfigurator()
Gets a Configurator object that describes and can manipulate the variables of this Configurable. |
java.lang.String |
getFileName()
Gets the name of the file that this sink writes to |
void |
setFileName(java.lang.String fileName,
boolean append)
Sets the name of the file that this sink will write to |
protected 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.StringSink |
|---|
log |
| 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 FileSink(java.lang.String fileName,
boolean append)
fileName - The name of the file to write toappend - True to make the sink write messages to the end of an
existing file, false to overwrite| Method Detail |
|---|
protected void writeString(java.lang.String s)
StringSink
writeString in class StringSinks - The String to writepublic java.lang.String getFileName()
public void setFileName(java.lang.String fileName,
boolean append)
fileName - The filenameappend - true to make the sink append to the end of an existing
file, false to overwritepublic Configurator getConfigurator()
Configurable
getConfigurator in interface ConfigurablegetConfigurator in class StringSink
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||