public class Timber extends Object
| Modifier and Type | Method and Description |
|---|---|
static Tree |
asTree()
A view into Timber's planted trees as a tree itself.
|
static void |
debug(String message,
Object... args)
Log a debug message with optional format args.
|
static void |
debug(Throwable throwable,
String message,
Object... args)
Log a debug exception and a message with optional format args.
|
static void |
error(String message,
Object... args)
Log an error message with optional format args.
|
static void |
error(Throwable throwable,
String message,
Object... args)
Log an error exception and a message with optional format args.
|
static void |
fatal(String message,
Object... args)
Log a fatal message with optional format args.
|
static void |
fatal(Throwable throwable,
String message,
Object... args)
Log a fatal exception and a message with optional format args.
|
static List<Tree> |
forest()
Return a copy of all planted trees.
|
static void |
info(String message,
Object... args)
Log an info message with optional format args.
|
static void |
info(Throwable throwable,
String message,
Object... args)
Log an info exception and a message with optional format args.
|
static void |
log(Level level,
String message,
Object... args)
Log at
priority a message with optional format args. |
static void |
log(Level level,
Throwable throwable,
String message,
Object... args)
Log at
level an exception and a message with optional format args. |
static void |
plant(Tree tree)
Add a new logging tree
|
static Tree |
tag(String tag)
Set a one-time tag for use on the next logging call
|
static void |
trace(String message,
Object... args)
Log a trace message with optional format args.
|
static void |
trace(Throwable throwable,
String message,
Object... args)
Log a trace exception and a message with optional format args.
|
static int |
treeCount()
Return the size of the forest.
|
static void |
uproot(Tree tree)
Remove a planted tree.
|
static void |
uprootAll()
Remove all planted trees.
|
static void |
warn(String message,
Object... args)
Log a warn message with optional format args.
|
static void |
warn(Throwable throwable,
String message,
Object... args)
Log a warn exception and a message with optional format args.
|
public static void trace(@NonNls
String message,
Object... args)
public static void trace(Throwable throwable, @NonNls String message, Object... args)
public static void debug(@NonNls
String message,
Object... args)
public static void debug(Throwable throwable, @NonNls String message, Object... args)
public static void info(@NonNls
String message,
Object... args)
public static void info(Throwable throwable, @NonNls String message, Object... args)
public static void warn(@NonNls
String message,
Object... args)
public static void warn(Throwable throwable, @NonNls String message, Object... args)
public static void error(@NonNls
String message,
Object... args)
public static void error(Throwable throwable, @NonNls String message, Object... args)
public static void fatal(@NonNls
String message,
Object... args)
public static void fatal(Throwable throwable, @NonNls String message, Object... args)
public static void log(Level level, @NonNls String message, Object... args)
priority a message with optional format args.public static void log(Level level, Throwable throwable, @NonNls String message, Object... args)
level an exception and a message with optional format args.public static Tree asTree()
public static void plant(Tree tree)
public static void uproot(Tree tree)
public static void uprootAll()
public static int treeCount()
Copyright © 2016. All rights reserved.