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,- Cloneable
- Direct Known Subclasses:
- RMLogger.CompositeLogger,- RMLogger.NoOp,- RMLogger.PrintStreamLogger
This class provides a simple abstraction for logging messages.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classA logger to combine multiple other loggers.static classA logger that does nothing.static classA logger that wraps around a print stream.static classA class to read lines from a given input stream in a separate thread and print them.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()Clears the log.getLog()Returns the activity log.Returns the activity log string.booleanReturns whether to log to standard out/err.voidCalled when activity has something to say (forwards to listeners).voidCalled when activity has something to say (forwards to listeners).voidread(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, toStringMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, clone, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Field Details- 
out
- 
err
- 
nop
 
- 
- 
Constructor Details- 
RMLoggerpublic RMLogger()
 
- 
- 
Method Details- 
getLogReturns the activity log.
- 
getLogStringReturns 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.
- 
readTells the logger to read from input stream.
- 
printCalled when activity has something to say (forwards to listeners).
- 
printlnCalled when activity has something to say (forwards to listeners).
- 
clearpublic void clear()Clears the log.
 
-