Class LogLine
- java.lang.Object
-
- de.gebit.integrity.runner.logging.LogLine
-
public class LogLine extends java.lang.Object
Represents a single log line of theDefaultFixtureLogger
.- Author:
- Rene Schneider - initial API and implementation
-
-
Field Summary
Fields Modifier and Type Field Description protected FixtureLogLevel
level
The level at which the line was logged.protected java.lang.String
text
The text.protected long
timestamp
The timestamp at which this line was logged.protected static java.text.DateFormat
TIMESTAMP_FORMAT
The timestamp format for stringification of this log line.
-
Constructor Summary
Constructors Constructor Description LogLine(java.lang.String aText, FixtureLogLevel aLevel)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FixtureLogLevel
getLevel()
java.lang.String
getText()
long
getTimestamp()
java.lang.String
toString()
-
-
-
Field Detail
-
text
protected java.lang.String text
The text.
-
timestamp
protected long timestamp
The timestamp at which this line was logged.
-
level
protected FixtureLogLevel level
The level at which the line was logged.
-
TIMESTAMP_FORMAT
protected static final java.text.DateFormat TIMESTAMP_FORMAT
The timestamp format for stringification of this log line.
-
-
Constructor Detail
-
LogLine
public LogLine(java.lang.String aText, FixtureLogLevel aLevel)
Creates a new instance.- Parameters:
aText
- the textaLevel
- the level at which the line was logged
-
-
Method Detail
-
getText
public java.lang.String getText()
-
getTimestamp
public long getTimestamp()
-
getLevel
public FixtureLogLevel getLevel()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-