Class NullLog


  • class NullLog
    extends Log
    An implementation of Log that doesn't log anything.
    • Constructor Summary

      Constructors 
      Constructor Description
      NullLog()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Closes the log file.
      void log​(java.lang.String text)
      Writes an entry to the log file.
      void logln​(java.lang.String text)  
      • Methods inherited from class com.mckoi.util.Log

        nullLog
      • Methods inherited from class java.lang.Object

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

      • NullLog

        public NullLog()
    • Method Detail

      • log

        public void log​(java.lang.String text)
        Description copied from class: Log
        Writes an entry to the log file. The log file records the time the entry was put into the log, and the string which is the log.
        Overrides:
        log in class Log
      • logln

        public void logln​(java.lang.String text)
        Overrides:
        logln in class Log
      • close

        public void close()
        Description copied from class: Log
        Closes the log file.
        Overrides:
        close in class Log