Package jisa.logging

Class Log

  • All Implemented Interfaces:
    java.lang.Iterable<LogEntry>

    public class Log
    extends java.lang.Object
    implements java.lang.Iterable<LogEntry>
    • Constructor Summary

      Constructors 
      Constructor Description
      Log​(java.lang.String path)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addDebug​(java.lang.String message)  
      void addEntry​(java.time.LocalDateTime time, LogEntry.Level level, java.lang.String message)  
      void addEntry​(LogEntry entry)  
      void addEntry​(LogEntry.Level level, java.lang.String message)  
      void addError​(java.lang.String message)  
      void addFatal​(java.lang.String message)  
      void addMessage​(java.lang.String message)  
      void addWarning​(java.lang.String message)  
      void close()  
      java.util.Iterator<LogEntry> iterator()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • Log

        public Log​(java.lang.String path)
            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • addEntry

        public void addEntry​(LogEntry entry)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addEntry

        public void addEntry​(java.time.LocalDateTime time,
                             LogEntry.Level level,
                             java.lang.String message)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addEntry

        public void addEntry​(LogEntry.Level level,
                             java.lang.String message)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addMessage

        public void addMessage​(java.lang.String message)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • addDebug

        public void addDebug​(java.lang.String message)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addWarning

        public void addWarning​(java.lang.String message)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • addError

        public void addError​(java.lang.String message)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addFatal

        public void addFatal​(java.lang.String message)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • iterator

        public java.util.Iterator<LogEntry> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<LogEntry>