Class RMLogger

All Implemented Interfaces:
RMPropertyChanger, Cloneable
Direct Known Subclasses:
RMLogger.CompositeLogger, RMLogger.NoOp, RMLogger.PrintStreamLogger

public class RMLogger extends RMObject
This class provides a simple abstraction for logging messages.
  • Field Details

  • Constructor Details

    • RMLogger

      public RMLogger()
  • Method Details

    • getLog

      public StringBuffer getLog()
      Returns the activity log.
    • getLogString

      public String getLogString()
      Returns the activity log string.
    • getLogToStandard

      public boolean getLogToStandard()
      Returns whether to log to standard out/err.
    • setLogToStandard

      public void setLogToStandard(boolean aValue)
      Sets whether to log to standard out/err.
    • read

      public void read(InputStream anInputStream)
      Tells the logger to read from input stream.
    • print

      public void print(String aString)
      Called when activity has something to say (forwards to listeners).
    • println

      public void println(String aString)
      Called when activity has something to say (forwards to listeners).
    • clear

      public void clear()
      Clears the log.