MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / Slog

Class Slog

core/java/android/util/Slog.java:27–100  ·  view source on GitHub ↗

@hide

Source from the content-addressed store, hash-verified

25 * @hide
26 */
27public final class Slog {
28
29 private Slog() {
30 }
31
32 public static int v(String tag, String msg) {
33 return Log.println_native(Log.LOG_ID_SYSTEM, Log.VERBOSE, tag, msg);
34 }
35
36 public static int v(String tag, String msg, Throwable tr) {
37 return Log.println_native(Log.LOG_ID_SYSTEM, Log.VERBOSE, tag,
38 msg + '\n' + Log.getStackTraceString(tr));
39 }
40
41 public static int d(String tag, String msg) {
42 return Log.println_native(Log.LOG_ID_SYSTEM, Log.DEBUG, tag, msg);
43 }
44
45 public static int d(String tag, String msg, Throwable tr) {
46 return Log.println_native(Log.LOG_ID_SYSTEM, Log.DEBUG, tag,
47 msg + '\n' + Log.getStackTraceString(tr));
48 }
49
50 public static int i(String tag, String msg) {
51 return Log.println_native(Log.LOG_ID_SYSTEM, Log.INFO, tag, msg);
52 }
53
54 public static int i(String tag, String msg, Throwable tr) {
55 return Log.println_native(Log.LOG_ID_SYSTEM, Log.INFO, tag,
56 msg + '\n' + Log.getStackTraceString(tr));
57 }
58
59 public static int w(String tag, String msg) {
60 return Log.println_native(Log.LOG_ID_SYSTEM, Log.WARN, tag, msg);
61 }
62
63 public static int w(String tag, String msg, Throwable tr) {
64 return Log.println_native(Log.LOG_ID_SYSTEM, Log.WARN, tag,
65 msg + '\n' + Log.getStackTraceString(tr));
66 }
67
68 public static int w(String tag, Throwable tr) {
69 return Log.println_native(Log.LOG_ID_SYSTEM, Log.WARN, tag, Log.getStackTraceString(tr));
70 }
71
72 public static int e(String tag, String msg) {
73 return Log.println_native(Log.LOG_ID_SYSTEM, Log.ERROR, tag, msg);
74 }
75
76 public static int e(String tag, String msg, Throwable tr) {
77 return Log.println_native(Log.LOG_ID_SYSTEM, Log.ERROR, tag,
78 msg + '\n' + Log.getStackTraceString(tr));
79 }
80
81 public static int wtf(String tag, String msg) {
82 return Log.wtf(Log.LOG_ID_SYSTEM, tag, msg, null, false);
83 }
84

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected