Lines Matching defs:tag

98         void onTerribleFailure(String tag, TerribleFailure what);
102 public void onTerribleFailure(String tag, TerribleFailure what) {
103 RuntimeInit.wtf(tag, what);
112 * @param tag Used to identify the source of a log message. It usually identifies
116 public static int v(String tag, String msg) {
117 return println_native(LOG_ID_MAIN, VERBOSE, tag, msg);
122 * @param tag Used to identify the source of a log message. It usually identifies
127 public static int v(String tag, String msg, Throwable tr) {
128 return println_native(LOG_ID_MAIN, VERBOSE, tag, msg + '\n' + getStackTraceString(tr));
133 * @param tag Used to identify the source of a log message. It usually identifies
137 public static int d(String tag, String msg) {
138 return println_native(LOG_ID_MAIN, DEBUG, tag, msg);
143 * @param tag Used to identify the source of a log message. It usually identifies
148 public static int d(String tag, String msg, Throwable tr) {
149 return println_native(LOG_ID_MAIN, DEBUG, tag, msg + '\n' + getStackTraceString(tr));
154 * @param tag Used to identify the source of a log message. It usually identifies
158 public static int i(String tag, String msg) {
159 return println_native(LOG_ID_MAIN, INFO, tag, msg);
164 * @param tag Used to identify the source of a log message. It usually identifies
169 public static int i(String tag, String msg, Throwable tr) {
170 return println_native(LOG_ID_MAIN, INFO, tag, msg + '\n' + getStackTraceString(tr));
175 * @param tag Used to identify the source of a log message. It usually identifies
179 public static int w(String tag, String msg) {
180 return println_native(LOG_ID_MAIN, WARN, tag, msg);
185 * @param tag Used to identify the source of a log message. It usually identifies
190 public static int w(String tag, String msg, Throwable tr) {
191 return println_native(LOG_ID_MAIN, WARN, tag, msg + '\n' + getStackTraceString(tr));
195 * Checks to see whether or not a log for the specified tag is loggable at the specified level.
197 * The default level of any tag is set to INFO. This means that any level above and including
199 * if your tag should be logged. You can change the default level by setting a system property:
200 * 'setprop log.tag.<YOUR_LOG_TAG> <LEVEL>'
202 * turn off all logging for your tag. You can also create a local.prop file that with the
204 * 'log.tag.<YOUR_LOG_TAG>=<LEVEL>'
207 * @param tag The tag to check.
210 * @throws IllegalArgumentException is thrown if the tag.length() > 23.
212 public static native boolean isLoggable(String tag, int level);
216 * @param tag Used to identify the source of a log message. It usually identifies
220 public static int w(String tag, Throwable tr) {
221 return println_native(LOG_ID_MAIN, WARN, tag, getStackTraceString(tr));
226 * @param tag Used to identify the source of a log message. It usually identifies
230 public static int e(String tag, String msg) {
231 return println_native(LOG_ID_MAIN, ERROR, tag, msg);
236 * @param tag Used to identify the source of a log message. It usually identifies
241 public static int e(String tag, String msg, Throwable tr) {
242 return println_native(LOG_ID_MAIN, ERROR, tag, msg + '\n' + getStackTraceString(tr));
251 * @param tag Used to identify the source of a log message.
254 public static int wtf(String tag, String msg) {
255 return wtf(tag, msg, null);
261 * @param tag Used to identify the source of a log message.
264 public static int wtf(String tag, Throwable tr) {
265 return wtf(tag, tr.getMessage(), tr);
271 * @param tag Used to identify the source of a log message.
275 public static int wtf(String tag, String msg, Throwable tr) {
277 int bytes = println_native(LOG_ID_MAIN, ASSERT, tag, msg + '\n' + getStackTraceString(tr));
278 sWtfHandler.onTerribleFailure(tag, what);
326 * @param tag Used to identify the source of a log message. It usually identifies
331 public static int println(int priority, String tag, String msg) {
332 return println_native(LOG_ID_MAIN, priority, tag, msg);
341 int priority, String tag, String msg);