Package net.i2p.util
Class LogRecordFormatter
- java.lang.Object
-
- net.i2p.util.LogRecordFormatter
-
class LogRecordFormatter extends Object
Render a log record according to the log manager's settings
-
-
Constructor Summary
Constructors Constructor Description LogRecordFormatter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
formatRecord(LogManager manager, LogRecord rec)
(package private) static String
formatRecord(LogManager manager, LogRecord rec, boolean showDate)
static String
getWhen(LogManager manager, LogRecord logRecord)
-
-
-
Field Detail
-
NL
static final String NL
-
-
Method Detail
-
formatRecord
public static String formatRecord(LogManager manager, LogRecord rec)
-
formatRecord
static String formatRecord(LogManager manager, LogRecord rec, boolean showDate)
- Parameters:
showDate
- if false, skip any date in the format (use when writing to wrapper log)- Since:
- 0.8.2
-
getWhen
public static String getWhen(LogManager manager, LogRecord logRecord)
-
-