Class SupportLogFormatter
- java.lang.Object
-
- java.util.logging.Formatter
-
- io.jenkins.lib.support_log_formatter.SupportLogFormatter
-
public class SupportLogFormatter extends Formatter
Format log files in a nicer format that is easier to read and search.- Author:
- Stephen Connolly
-
-
Constructor Summary
Constructors Constructor Description SupportLogFormatter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
abbreviateClassName(String fqcn, int targetLength)
String
format(LogRecord record)
protected String
formatTime(LogRecord record)
static void
printStackTrace(Throwable t, PrintStream ps)
static void
printStackTrace(Throwable t, PrintWriter pw)
static String
printThrowable(Throwable t)
-
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
-
-
-
-
Method Detail
-
printStackTrace
public static void printStackTrace(Throwable t, PrintWriter pw)
-
printStackTrace
public static void printStackTrace(Throwable t, PrintStream ps)
-
-