public final class LoggingUtil
extends java.lang.Object
logExpensive(java.util.logging.Level, java.lang.String, java.lang.Throwable)
allows the programmer to easily emit a log message,
however the function is rather expensive and thus should not be used within
loop constructs.Modifier | Constructor and Description |
---|---|
private |
LoggingUtil()
Private constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
exception(java.lang.String message,
java.lang.Throwable e)
Static version to log a severe exception.
|
static void |
exception(java.lang.Throwable e)
Static version to log a severe exception.
|
private static java.lang.String[] |
inferCaller()
Infer which class has called the logging helper.
|
static void |
logExpensive(java.util.logging.Level level,
java.lang.String message)
Expensive logging function that is convenient, but should only be used in
rare conditions.
|
static void |
logExpensive(java.util.logging.Level level,
java.lang.String message,
java.lang.Throwable e)
Expensive logging function that is convenient, but should only be used in
rare conditions.
|
static void |
message(java.lang.String message)
Static version to log a 'info' message.
|
static void |
message(java.lang.String message,
java.lang.Throwable e)
Static version to log a 'info' message.
|
static void |
warning(java.lang.String message)
Static version to log a warning message.
|
static void |
warning(java.lang.String message,
java.lang.Throwable e)
Static version to log a warning message.
|
public static void logExpensive(java.util.logging.Level level, java.lang.String message, java.lang.Throwable e)
logging package documentation
.level
- Logging levelmessage
- Message to log.e
- Exception to report.public static void logExpensive(java.util.logging.Level level, java.lang.String message)
logging package documentation
.level
- Logging levelmessage
- Message to log.public static void exception(java.lang.Throwable e)
e
- Exception to logpublic static void exception(java.lang.String message, java.lang.Throwable e)
message
- Exception message, may be null (defaults to e.getMessage())e
- causing exceptionpublic static void warning(java.lang.String message)
message
- Warning message.public static void warning(java.lang.String message, java.lang.Throwable e)
message
- Warning message, may be null (defaults to e.getMessage())e
- causing exceptionpublic static void message(java.lang.String message)
message
- Warning message.public static void message(java.lang.String message, java.lang.Throwable e)
message
- Warning message, may be null (defaults to e.getMessage())e
- causing exceptionprivate static final java.lang.String[] inferCaller()
Copyright © 2019 ELKI Development Team. License information.