日志

public class Log
extends Object

java.lang.Object
   ↳ com.android.ddmlib.Log


摘要

公共构造函数

Log()

公共方法

static void d(String tag, String message)

输出 LogLevel.DEBUG 级消息。

static void e(String tag, String message)

输出 LogLevel.ERROR 级消息。

static void e(String tag, Throwable throwable)

输出 LogLevel.ERRORThrowable 信息。

static void i(String tag, String message)

输出 LogLevel.INFO 级消息。

static void logAndDisplay(Log.LogLevel logLevel, String tag, String message)
static void v(String tag, String message)

输出 LogLevel.VERBOSE 级消息。

static void w(String tag, String message)

输出 LogLevel.WARN 级消息。

公共构造函数

日志

public Log ()

公共方法

d

public static void d (String tag, 
                String message)

输出 LogLevel.DEBUG 级消息。

参数
tag String:与消息关联的标记。

message String:要输出的消息。

e

public static void e (String tag, 
                String message)

输出 LogLevel.ERROR 级消息。

参数
tag String:与消息关联的标记。

message String:要输出的消息。

e

public static void e (String tag, 
                Throwable throwable)

输出 LogLevel.ERRORThrowable 信息。

参数
tag String:与消息关联的标记。

throwable Throwable:要输出的 Throwable

i

public static void i (String tag, 
                String message)

输出 LogLevel.INFO 级消息。

参数
tag String:与消息关联的标记。

message String:要输出的消息。

logAndDisplay

public static void logAndDisplay (Log.LogLevel logLevel, 
                String tag, 
                String message)

参数
logLevel Log.LogLevel

tag String

message String

v

public static void v (String tag, 
                String message)

输出 LogLevel.VERBOSE 级消息。

参数
tag String:与消息关联的标记。

message String:要输出的消息。

W

public static void w (String tag, 
                String message)

输出 LogLevel.WARN 级消息。

参数
tag String:与消息关联的标记。

message String:要输出的消息。