public class TraceLogging extends Object
Constructor and Description |
---|
TraceLogging() |
Modifier and Type | Method and Description |
---|---|
static void |
dump(PrintStream out,
String title)
Dumps last entries from this trace log.
|
static void |
log(String loggerName,
Level level,
String msg,
Throwable t)
Adds log entry.
|
static void |
logAndStop(Class<?> where,
String msg)
Adds last entry and stops trace logging.
|
static void |
logAndStop(Class<?> where,
String msg,
Throwable t)
Adds last entry with exception and stops trace logging.
|
static void |
restart()
Restarts trace logging from scratch (old log entries are cleared).
|
static void |
stop()
Stops trace logging.
|
public static void restart()
public static void stop()
public static void log(String loggerName, Level level, String msg, Throwable t)
Logging.log(Level, String, Throwable)
method when
assertions are enabled.public static void logAndStop(Class<?> where, String msg)
public static void logAndStop(Class<?> where, String msg, Throwable t)
public static void dump(PrintStream out, String title)
stop()
or logAndStop(Class, String)
.
It does nothing if called more than once after stop or before stop.Copyright © 2002–2025 Devexperts LLC. All rights reserved.