記錄

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.ERROR 層級 Throwable 資訊。

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 ()

公用方法

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.ERROR 層級 Throwable 資訊。

參數
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:要輸出的訊息。