@Implements(value=android.util.Log.class) public class ShadowLog extends Object
Log.| Modifier and Type | Class and Description |
|---|---|
static class |
ShadowLog.LogItem |
| Modifier and Type | Field and Description |
|---|---|
static PrintStream |
stream |
| Constructor and Description |
|---|
ShadowLog() |
| Modifier and Type | Method and Description |
|---|---|
static void |
d(String tag,
String msg) |
static void |
d(String tag,
String msg,
Throwable throwable) |
static void |
e(String tag,
String msg) |
static void |
e(String tag,
String msg,
Throwable throwable) |
static List<ShadowLog.LogItem> |
getLogs()
Non-Android accessor.
|
static List<ShadowLog.LogItem> |
getLogsForTag(String tag)
Non-Android accessor.
|
static void |
i(String tag,
String msg) |
static void |
i(String tag,
String msg,
Throwable throwable) |
static boolean |
isLoggable(String tag,
int level) |
static int |
println(int priority,
String tag,
String msg) |
static void |
reset() |
static void |
setLoggable(String tag,
int level)
Sets the log level of a given tag, that
isLoggable(java.lang.String, int) will follow. |
static void |
setupLogging() |
static void |
v(String tag,
String msg) |
static void |
v(String tag,
String msg,
Throwable throwable) |
static void |
w(String tag,
String msg) |
static void |
w(String tag,
String msg,
Throwable throwable) |
static void |
w(String tag,
Throwable throwable) |
static void |
wtf(String tag,
String msg) |
static void |
wtf(String tag,
String msg,
Throwable throwable) |
public static PrintStream stream
@Implementation public static boolean isLoggable(String tag, int level)
public static void setLoggable(String tag, int level)
isLoggable(java.lang.String, int) will follow.tag - A log taglevel - A log level, from Logpublic static List<ShadowLog.LogItem> getLogs()
public static List<ShadowLog.LogItem> getLogsForTag(String tag)
tag - The tag to get logs for@Resetter public static void reset()
public static void setupLogging()
Copyright © 2016. All rights reserved.