Class DefaultLogFormatter
- java.lang.Object
-
- de.dytanic.cloudnet.common.logging.DefaultLogFormatter
-
- All Implemented Interfaces:
IFormatter
public final class DefaultLogFormatter extends java.lang.Object implements IFormatter
The default log formatter, defines a fallback log format for all AbstractLogHandler implementationsThe message format looks like:
[15.02 23:32.56.456] INFO: Hello, world!
- See Also:
AbstractLogHandler
-
-
Constructor Summary
Constructors Constructor Description DefaultLogFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringformat(LogEntry logEntry)Formats a logEntry into a readable text
-
-
-
Method Detail
-
format
public java.lang.String format(LogEntry logEntry)
Description copied from interface:IFormatterFormats a logEntry into a readable text- Specified by:
formatin interfaceIFormatter- Parameters:
logEntry- the log item which should be format- Returns:
- the new formatted string
-
-