Package eu.woolplatform.utils.log
Class LogLineTagger
- java.lang.Object
-
- eu.woolplatform.utils.log.LogLineTagger
-
public class LogLineTagger extends Object
This class can tag lines in a log message before the message is written. The tags include the log level, the message tag (identification of the source) and the current date and time.
-
-
Constructor Summary
Constructors Constructor Description LogLineTagger()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringtagLines(int level, String tag, org.joda.time.DateTime time, String msg)Tags every line in the specified message.
-
-
-
Method Detail
-
tagLines
public static String tagLines(int level, String tag, org.joda.time.DateTime time, String msg)
Tags every line in the specified message. It will prefix every line with the log level, the tag and the current date and time. Every line will end with a new line character, including the last line.- Parameters:
level- the log leveltag- the tagtime- the current date and timemsg- the log message- Returns:
- the log message with tagged lines
-
-