com.baidu.sapi2.log
类 Logger

java.lang.Object
  继承者 com.baidu.sapi2.log.Logger

public class Logger
extends Object

Wrapper API for sending log output.


字段摘要
protected static String TAG
           
 
构造方法摘要
Logger()
           
 
方法摘要
protected static String buildMessage(String msg)
          Building Message
static void d(String msg)
          Send a DEBUG log message.
static void d(String msg, Throwable thr)
          Send a DEBUG log message and log the exception.
static void e(String msg)
          Send an ERROR log message.
static void e(String msg, Throwable thr)
          Send an ERROR log message and log the exception.
static void i(String msg)
          Send an INFO log message.
static void i(String msg, Throwable thr)
          Send a INFO log message and log the exception.
static void v(String msg)
          Send a VERBOSE log message.
static void v(String msg, Throwable thr)
          Send a VERBOSE log message and log the exception.
static void w(String msg)
          Send a WARN log message
static void w(String msg, Throwable thr)
          Send a WARN log message and log the exception.
static void w(Throwable thr)
          Send an empty WARN log message and log the exception.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

TAG

protected static final String TAG
另请参见:
常量字段值
构造方法详细信息

Logger

public Logger()
方法详细信息

v

public static void v(String msg)
Send a VERBOSE log message.

参数:
msg - The message you would like logged.

v

public static void v(String msg,
                     Throwable thr)
Send a VERBOSE log message and log the exception.

参数:
msg - The message you would like logged.
thr - An exception to log

d

public static void d(String msg)
Send a DEBUG log message.

参数:
msg -

d

public static void d(String msg,
                     Throwable thr)
Send a DEBUG log message and log the exception.

参数:
msg - The message you would like logged.
thr - An exception to log

i

public static void i(String msg)
Send an INFO log message.

参数:
msg - The message you would like logged.

i

public static void i(String msg,
                     Throwable thr)
Send a INFO log message and log the exception.

参数:
msg - The message you would like logged.
thr - An exception to log

e

public static void e(String msg)
Send an ERROR log message.

参数:
msg - The message you would like logged.

w

public static void w(String msg)
Send a WARN log message

参数:
msg - The message you would like logged.

w

public static void w(String msg,
                     Throwable thr)
Send a WARN log message and log the exception.

参数:
msg - The message you would like logged.
thr - An exception to log

w

public static void w(Throwable thr)
Send an empty WARN log message and log the exception.

参数:
thr - An exception to log

e

public static void e(String msg,
                     Throwable thr)
Send an ERROR log message and log the exception.

参数:
msg - The message you would like logged.
thr - An exception to log

buildMessage

protected static String buildMessage(String msg)
Building Message

参数:
msg - The message you would like logged.
返回:
Message String


Copyright © 2013. All Rights Reserved.