org.apache.jena.atlas.logging
Class FmtLog
java.lang.Object
org.apache.jena.atlas.logging.FmtLog
public class FmtLog
- extends Object
Logging with String.format (which can be a expensive)
The formatting operations are not designed specifically for performance,
but they do delay forming strings for output
until it is know that a log message is actually
required by level setting.
An odd effect is order of the arguments - vararg arguments must be last
so the order is Logger/Format/Thorwable?/args
|
Method Summary |
static void |
debug(org.slf4j.Logger log,
String fmt,
Object... args)
|
static void |
debug(org.slf4j.Logger log,
Throwable th,
String fmt,
Object... args)
|
static void |
error(org.slf4j.Logger log,
String fmt,
Object... args)
|
static void |
error(org.slf4j.Logger log,
Throwable th,
String fmt,
Object... args)
|
static void |
info(org.slf4j.Logger log,
String fmt,
Object... args)
|
static void |
info(org.slf4j.Logger log,
Throwable th,
String fmt,
Object... args)
|
static void |
trace(org.slf4j.Logger log,
String fmt,
Object... args)
|
static void |
trace(org.slf4j.Logger log,
Throwable th,
String fmt,
Object... args)
|
static void |
warn(org.slf4j.Logger log,
String fmt,
Object... args)
|
static void |
warn(org.slf4j.Logger log,
Throwable th,
String fmt,
Object... args)
|
FmtLog
public FmtLog()
trace
public static void trace(org.slf4j.Logger log,
String fmt,
Object... args)
trace
public static void trace(org.slf4j.Logger log,
Throwable th,
String fmt,
Object... args)
debug
public static void debug(org.slf4j.Logger log,
String fmt,
Object... args)
debug
public static void debug(org.slf4j.Logger log,
Throwable th,
String fmt,
Object... args)
info
public static void info(org.slf4j.Logger log,
String fmt,
Object... args)
info
public static void info(org.slf4j.Logger log,
Throwable th,
String fmt,
Object... args)
warn
public static void warn(org.slf4j.Logger log,
String fmt,
Object... args)
warn
public static void warn(org.slf4j.Logger log,
Throwable th,
String fmt,
Object... args)
error
public static void error(org.slf4j.Logger log,
String fmt,
Object... args)
error
public static void error(org.slf4j.Logger log,
Throwable th,
String fmt,
Object... args)
Licenced under the Apache License, Version 2.0