Lines Matching refs:tag

103         void onTerribleFailure(String tag, TerribleFailure what, boolean system);
107 public void onTerribleFailure(String tag, TerribleFailure what, boolean system) {
108 RuntimeInit.wtf(tag, what, system);
117 * @param tag Used to identify the source of a log message. It usually identifies
121 public static int v(String tag, String msg) {
122 return println_native(LOG_ID_MAIN, VERBOSE, tag, msg);
127 * @param tag Used to identify the source of a log message. It usually identifies
132 public static int v(String tag, String msg, Throwable tr) {
133 return printlns(LOG_ID_MAIN, VERBOSE, tag, msg, tr);
138 * @param tag Used to identify the source of a log message. It usually identifies
142 public static int d(String tag, String msg) {
143 return println_native(LOG_ID_MAIN, DEBUG, tag, msg);
148 * @param tag Used to identify the source of a log message. It usually identifies
153 public static int d(String tag, String msg, Throwable tr) {
154 return printlns(LOG_ID_MAIN, DEBUG, tag, msg, tr);
159 * @param tag Used to identify the source of a log message. It usually identifies
163 public static int i(String tag, String msg) {
164 return println_native(LOG_ID_MAIN, INFO, tag, msg);
169 * @param tag Used to identify the source of a log message. It usually identifies
174 public static int i(String tag, String msg, Throwable tr) {
175 return printlns(LOG_ID_MAIN, INFO, tag, msg, tr);
180 * @param tag Used to identify the source of a log message. It usually identifies
184 public static int w(String tag, String msg) {
185 return println_native(LOG_ID_MAIN, WARN, tag, msg);
190 * @param tag Used to identify the source of a log message. It usually identifies
195 public static int w(String tag, String msg, Throwable tr) {
196 return printlns(LOG_ID_MAIN, WARN, tag, msg, tr);
200 * Checks to see whether or not a log for the specified tag is loggable at the specified level.
202 * The default level of any tag is set to INFO. This means that any level above and including
204 * if your tag should be logged. You can change the default level by setting a system property:
205 * 'setprop log.tag.<YOUR_LOG_TAG> <LEVEL>'
207 * turn off all logging for your tag. You can also create a local.prop file that with the
209 * 'log.tag.<YOUR_LOG_TAG>=<LEVEL>'
212 * @param tag The tag to check.
215 * @throws IllegalArgumentException is thrown if the tag.length() > 23.
217 public static native boolean isLoggable(String tag, int level);
221 * @param tag Used to identify the source of a log message. It usually identifies
225 public static int w(String tag, Throwable tr) {
226 return printlns(LOG_ID_MAIN, WARN, tag, "", tr);
231 * @param tag Used to identify the source of a log message. It usually identifies
235 public static int e(String tag, String msg) {
236 return println_native(LOG_ID_MAIN, ERROR, tag, msg);
241 * @param tag Used to identify the source of a log message. It usually identifies
246 public static int e(String tag, String msg, Throwable tr) {
247 return printlns(LOG_ID_MAIN, ERROR, tag, msg, tr);
256 * @param tag Used to identify the source of a log message.
259 public static int wtf(String tag, String msg) {
260 return wtf(LOG_ID_MAIN, tag, msg, null, false, false);
268 public static int wtfStack(String tag, String msg) {
269 return wtf(LOG_ID_MAIN, tag, msg, null, true, false);
275 * @param tag Used to identify the source of a log message.
278 public static int wtf(String tag, Throwable tr) {
279 return wtf(LOG_ID_MAIN, tag, tr.getMessage(), tr, false, false);
285 * @param tag Used to identify the source of a log message.
289 public static int wtf(String tag, String msg, Throwable tr) {
290 return wtf(LOG_ID_MAIN, tag, msg, tr, false, false);
293 static int wtf(int logId, String tag, String msg, Throwable tr, boolean localStack,
299 int bytes = printlns(logId, ERROR, tag, msg, localStack ? what : tr);
300 sWtfHandler.onTerribleFailure(tag, what, system);
304 static void wtfQuiet(int logId, String tag, String msg, boolean system) {
306 sWtfHandler.onTerribleFailure(tag, what, system);
354 * @param tag Used to identify the source of a log message. It usually identifies
359 public static int println(int priority, String tag, String msg) {
360 return println_native(LOG_ID_MAIN, priority, tag, msg);
370 int priority, String tag, String msg);
384 public static int printlns(int bufID, int priority, String tag, String msg,
386 ImmediateLogWriter logWriter = new ImmediateLogWriter(bufID, priority, tag);
388 // and the length of the tag.
393 - (tag != null ? tag.length() : 0) // Tag length.
395 // At least assume you can print *some* characters (tag is not too large).
444 private String tag;
452 public ImmediateLogWriter(int bufID, int priority, String tag) {
455 this.tag = tag;
467 written += println_native(bufID, priority, tag, new String(cbuf, off, len));