Package com.inductiveautomation.rm.base
Class RMLogger
- java.lang.Object
- 
- com.inductiveautomation.rm.base.RMListenerList
- 
- com.inductiveautomation.rm.base.RMObject
- 
- com.inductiveautomation.rm.base.RMLogger
 
 
 
- 
- All Implemented Interfaces:
- RMPropertyChanger,- java.lang.Cloneable
 - Direct Known Subclasses:
- RMLogger.CompositeLogger,- RMLogger.NoOp,- RMLogger.PrintStreamLogger
 
 public class RMLogger extends RMObject This class provides a simple abstraction for logging messages.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRMLogger.CompositeLoggerA logger to combine multiple other loggers.static classRMLogger.NoOpA logger that does nothing.static classRMLogger.PrintStreamLoggerA logger that wraps around a print stream.static classRMLogger.ReaderA class to read lines from a given input stream in a separate thread and print them.
 - 
Constructor SummaryConstructors Constructor Description RMLogger()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the log.java.lang.StringBuffergetLog()Returns the activity log.java.lang.StringgetLogString()Returns the activity log string.booleangetLogToStandard()Returns whether to log to standard out/err.voidprint(java.lang.String aString)Called when activity has something to say (forwards to listeners).voidprintln(java.lang.String aString)Called when activity has something to say (forwards to listeners).voidread(java.io.InputStream anInputStream)Tells the logger to read from input stream.voidsetLogToStandard(boolean aValue)Sets whether to log to standard out/err.- 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange, toString
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getLogpublic java.lang.StringBuffer getLog() Returns the activity log.
 - 
getLogStringpublic java.lang.String getLogString() Returns the activity log string.
 - 
getLogToStandardpublic boolean getLogToStandard() Returns whether to log to standard out/err.
 - 
setLogToStandardpublic void setLogToStandard(boolean aValue) Sets whether to log to standard out/err.
 - 
readpublic void read(java.io.InputStream anInputStream) Tells the logger to read from input stream.
 - 
printpublic void print(java.lang.String aString) Called when activity has something to say (forwards to listeners).
 - 
printlnpublic void println(java.lang.String aString) Called when activity has something to say (forwards to listeners).
 - 
clearpublic void clear() Clears the log.
 
- 
 
-