Package jisa.logging
Class Log
- java.lang.Object
-
- jisa.logging.Log
-
-
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()
-
-
-
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
-
-