Package elki.logging
Class ErrorFormatter
- java.lang.Object
-
- java.util.logging.Formatter
-
- elki.logging.ErrorFormatter
-
public class ErrorFormatter extends java.util.logging.Formatter
Format a log record for error output, including a stack trace if available.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description ErrorFormatter()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
appendCauses(java.lang.StringBuilder buf, java.lang.Throwable thrown)
Append (pruned) stack traces for associated exceptions.java.lang.String
format(java.util.logging.LogRecord record)
-
-
-
Method Detail
-
format
public java.lang.String format(java.util.logging.LogRecord record)
- Specified by:
format
in classjava.util.logging.Formatter
-
appendCauses
private void appendCauses(java.lang.StringBuilder buf, java.lang.Throwable thrown)
Append (pruned) stack traces for associated exceptions.- Parameters:
buf
- Buffer to append tothrown
- Throwable to format.
-
-