Class LogFile

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Close the writer.
      void open()
      Open the writer.
      void publish​(LogMessage message)
      Write the log message to the file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • open

        public void open()
        Open the writer.
        Specified by:
        open in interface LogDestination
      • publish

        public void publish​(LogMessage message)
        Write the log message to the file.
        Specified by:
        publish in interface LogDestination
        Parameters:
        message - The formatted log message to publish.
      • close

        public void close()
        Close the writer.
        Specified by:
        close in interface LogDestination