Slogpublic final class Slog extends Object
Constructors Summary |
---|
private Slog()
|
Methods Summary |
---|
public static int | d(java.lang.String tag, java.lang.String msg)
return Log.println_native(Log.LOG_ID_SYSTEM, Log.DEBUG, tag, msg);
| public static int | d(java.lang.String tag, java.lang.String msg, java.lang.Throwable tr)
return Log.println_native(Log.LOG_ID_SYSTEM, Log.DEBUG, tag,
msg + '\n" + Log.getStackTraceString(tr));
| public static int | e(java.lang.String tag, java.lang.String msg)
return Log.println_native(Log.LOG_ID_SYSTEM, Log.ERROR, tag, msg);
| public static int | e(java.lang.String tag, java.lang.String msg, java.lang.Throwable tr)
return Log.println_native(Log.LOG_ID_SYSTEM, Log.ERROR, tag,
msg + '\n" + Log.getStackTraceString(tr));
| public static int | i(java.lang.String tag, java.lang.String msg)
return Log.println_native(Log.LOG_ID_SYSTEM, Log.INFO, tag, msg);
| public static int | i(java.lang.String tag, java.lang.String msg, java.lang.Throwable tr)
return Log.println_native(Log.LOG_ID_SYSTEM, Log.INFO, tag,
msg + '\n" + Log.getStackTraceString(tr));
| public static int | println(int priority, java.lang.String tag, java.lang.String msg)
return Log.println_native(Log.LOG_ID_SYSTEM, priority, tag, msg);
| public static int | v(java.lang.String tag, java.lang.String msg)
return Log.println_native(Log.LOG_ID_SYSTEM, Log.VERBOSE, tag, msg);
| public static int | v(java.lang.String tag, java.lang.String msg, java.lang.Throwable tr)
return Log.println_native(Log.LOG_ID_SYSTEM, Log.VERBOSE, tag,
msg + '\n" + Log.getStackTraceString(tr));
| public static int | w(java.lang.String tag, java.lang.Throwable tr)
return Log.println_native(Log.LOG_ID_SYSTEM, Log.WARN, tag, Log.getStackTraceString(tr));
| public static int | w(java.lang.String tag, java.lang.String msg)
return Log.println_native(Log.LOG_ID_SYSTEM, Log.WARN, tag, msg);
| public static int | w(java.lang.String tag, java.lang.String msg, java.lang.Throwable tr)
return Log.println_native(Log.LOG_ID_SYSTEM, Log.WARN, tag,
msg + '\n" + Log.getStackTraceString(tr));
| public static int | wtf(java.lang.String tag, java.lang.String msg)Like {@link Log#wtf(String, String)}, but will never cause the caller to crash, and
will always be handled asynchronously. Primarily for use by coding running within
the system process.
return Log.wtf(Log.LOG_ID_SYSTEM, tag, msg, null, false, true);
| public static int | wtf(java.lang.String tag, java.lang.Throwable tr)Like {@link Log#wtf(String, Throwable)}, but will never cause the caller to crash,
and will always be handled asynchronously. Primarily for use by coding running within
the system process.
return Log.wtf(Log.LOG_ID_SYSTEM, tag, tr.getMessage(), tr, false, true);
| public static int | wtf(java.lang.String tag, java.lang.String msg, java.lang.Throwable tr)Like {@link Log#wtf(String, String, Throwable)}, but will never cause the caller to crash,
and will always be handled asynchronously. Primarily for use by coding running within
the system process.
return Log.wtf(Log.LOG_ID_SYSTEM, tag, msg, tr, false, true);
| public static void | wtfQuiet(java.lang.String tag, java.lang.String msg)Like {@link #wtf(String, String)}, but does not output anything to the log.
Log.wtfQuiet(Log.LOG_ID_SYSTEM, tag, msg, true);
| public static int | wtfStack(java.lang.String tag, java.lang.String msg)Like {@link Log#wtfStack(String, String)}, but will never cause the caller to crash, and
will always be handled asynchronously. Primarily for use by coding running within
the system process.
return Log.wtf(Log.LOG_ID_SYSTEM, tag, msg, null, true, true);
|
|