• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2015 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.mms.service;
18 
19 
20 import android.telephony.Rlog;
21 
22 /**
23  * Logging utility
24  */
25 public class LogUtil {
26     public static final String TAG = "MmsService";
27 
i(final String requestId, final String message)28     public static void i(final String requestId, final String message) {
29         Rlog.i(TAG, "[" + requestId + "] " + message);
30     }
31 
i(final String message)32     public static void i(final String message) {
33         Rlog.i(TAG, message);
34     }
35 
d(final String requestId, final String message)36     public static void d(final String requestId, final String message) {
37         Rlog.d(TAG, "[" + requestId + "] " + message);
38     }
39 
d(final String message)40     public static void d(final String message) {
41         Rlog.d(TAG, message);
42     }
43 
v(final String requestId, final String message)44     public static void v(final String requestId, final String message) {
45         Rlog.v(TAG, "[" + requestId + "] " + message);
46     }
47 
v(final String message)48     public static void v(final String message) {
49         Rlog.v(TAG, message);
50     }
51 
e(final String requestId, final String message, final Throwable t)52     public static void e(final String requestId, final String message, final Throwable t) {
53         Rlog.e(TAG, "[" + requestId + "] " + message, t);
54     }
55 
e(final String message, final Throwable t)56     public static void e(final String message, final Throwable t) {
57         Rlog.e(TAG, message, t);
58     }
59 
e(final String requestId, final String message)60     public static void e(final String requestId, final String message) {
61         Rlog.e(TAG, "[" + requestId + "] " + message);
62     }
63 
e(final String message)64     public static void e(final String message) {
65         Rlog.e(TAG, message);
66     }
67 
w(final String requestId, final String message, final Throwable t)68     public static void w(final String requestId, final String message, final Throwable t) {
69         Rlog.w(TAG, "[" + requestId + "] " + message, t);
70     }
71 
w(final String message, final Throwable t)72     public static void w(final String message, final Throwable t) {
73         Rlog.w(TAG, message, t);
74     }
75 
w(final String requestId, final String message)76     public static void w(final String requestId, final String message) {
77         Rlog.w(TAG, "[" + requestId + "] " + message);
78     }
79 
w(final String message)80     public static void w(final String message) {
81         Rlog.w(TAG, message);
82     }
83 
isLoggable(final int logLevel)84     public static boolean isLoggable(final int logLevel) {
85         return Rlog.isLoggable(TAG, logLevel);
86     }
87 }
88