public class LogEntry extends java.lang.Object
LogEntry class.
Modifier and Type | Field and Description |
---|---|
protected java.time.format.DateTimeFormatter |
dateFormat |
Constructor and Description |
---|
LogEntry(java.time.LocalDateTime time,
java.lang.String message)
Constructor for LogEntry.
|
LogEntry(java.time.LocalDateTime time,
java.lang.String message,
Logable.LogTag tag)
Constructor for LogEntry.
|
LogEntry(java.lang.String message)
Constructor for LogEntry.
|
LogEntry(java.lang.String message,
Logable.LogTag tag)
Constructor for LogEntry.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Getter for the field
message . |
Logable.LogTag |
getTag()
Getter for the field
tag . |
java.time.LocalDateTime |
getTime()
Getter for the field
time . |
LogEntry |
pushTrace(java.lang.String toTrace)
pushTrace.
|
java.lang.String |
toString() |
protected java.time.format.DateTimeFormatter dateFormat
public LogEntry(java.time.LocalDateTime time, java.lang.String message, Logable.LogTag tag)
Constructor for LogEntry.
time
- message
- tag
- public LogEntry(java.lang.String message, Logable.LogTag tag)
Constructor for LogEntry.
message
- tag
- public LogEntry(java.time.LocalDateTime time, java.lang.String message)
Constructor for LogEntry.
time
- a Date
object.message
- a String
object.public LogEntry(java.lang.String message)
Constructor for LogEntry.
message
- a String
object.public Logable.LogTag getTag()
Getter for the field tag
.
public java.lang.String getMessage()
Getter for the field message
.
public java.time.LocalDateTime getTime()
Getter for the field time
.
public LogEntry pushTrace(java.lang.String toTrace)
pushTrace.
toTrace
- a String
object.LogEntry
object.public java.lang.String toString()
toString
in class java.lang.Object