Class LogLine
- java.lang.Object
-
- de.gebit.integrity.runner.logging.LogLine
-
public class LogLine extends Object
Represents a single log line of theDefaultFixtureLogger.- Author:
- Rene Schneider - initial API and implementation
-
-
Field Summary
Fields Modifier and Type Field Description protected FixtureLogLevellevelThe level at which the line was logged.protected StringtextThe text.protected longtimestampThe timestamp at which this line was logged.protected static DateFormatTIMESTAMP_FORMATThe timestamp format for stringification of this log line.
-
Constructor Summary
Constructors Constructor Description LogLine(String aText, FixtureLogLevel aLevel)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FixtureLogLevelgetLevel()StringgetText()longgetTimestamp()StringtoString()
-
-
-
Field Detail
-
text
protected 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 DateFormat TIMESTAMP_FORMAT
The timestamp format for stringification of this log line.
-
-
Constructor Detail
-
LogLine
public LogLine(String aText, FixtureLogLevel aLevel)
Creates a new instance.- Parameters:
aText- the textaLevel- the level at which the line was logged
-
-
Method Detail
-
getText
public String getText()
-
getTimestamp
public long getTimestamp()
-
getLevel
public FixtureLogLevel getLevel()
-
-