edu.stanford.nlp.util.logging
Class Redwood.FileHandler

java.lang.Object
  extended by edu.stanford.nlp.util.logging.LogRecordHandler
      extended by edu.stanford.nlp.util.logging.OutputHandler
          extended by edu.stanford.nlp.util.logging.Redwood.FileHandler
Enclosing class:
Redwood

public static class Redwood.FileHandler
extends OutputHandler

Handler which prints to a specified file TODO: make constructors for other ways of describing files (File, for example!)


Field Summary
 
Fields inherited from class edu.stanford.nlp.util.logging.OutputHandler
addRandomColors, channelColors, channelSeparatorChar, channelStyles, info, leftMargin, minLineCountForTrackNameReminder, queuedTracks, tab, trackColor, trackStack, trackStyle
 
Fields inherited from class edu.stanford.nlp.util.logging.LogRecordHandler
EMPTY
 
Constructor Summary
Redwood.FileHandler(String filename)
           
 
Method Summary
 void print(String line)
          Print a string to an output without the trailing newline.
 
Methods inherited from class edu.stanford.nlp.util.logging.OutputHandler
colorChannel, handle, setColorChannels, signalEndTrack, signalStartTrack, style, styleChannel
 
Methods inherited from class edu.stanford.nlp.util.logging.LogRecordHandler
signalShutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Redwood.FileHandler

public Redwood.FileHandler(String filename)
Method Detail

print

public void print(String line)
Print a string to an output without the trailing newline. Many output handlers can get by with just implementing this method.

Specified by:
print in class OutputHandler
Parameters:
line - The string to be printed.


Stanford NLP Group