|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectactivity.xxjd.com.utilbase.Logger
public final class Logger
漂亮的日志打印工具
| 嵌套类摘要 | |
|---|---|
static class |
Logger.Settings
|
| 方法摘要 | |
|---|---|
static void |
d(String message)
|
static void |
d(String message,
int methodCount)
|
static void |
e(Exception e)
|
static void |
e(String message)
|
static void |
e(String message,
Exception e)
|
static void |
e(String message,
Exception e,
int methodCount)
|
static void |
e(String message,
int methodCount)
|
static void |
e(String message,
Throwable t)
|
static void |
e(Throwable t)
|
static void |
i(String message)
|
static void |
i(String message,
int methodCount)
|
static Logger.Settings |
init()
初始化设置 |
static Logger.Settings |
init(LogLevel logLevel)
初始化设置 |
static Logger.Settings |
init(LogLevel logLevel,
String tag)
初始化设置 |
static Logger.Settings |
init(String tag)
初始化设置 |
static void |
json(String json)
打印json日志 |
static void |
json(String json,
int methodCount)
打印json日志 |
static void |
v(String message)
|
static void |
v(String message,
int methodCount)
|
static void |
w(String message)
|
static void |
w(String message,
int methodCount)
|
static void |
wtf(String message)
|
static void |
wtf(String message,
int methodCount)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public static Logger.Settings init()
public static Logger.Settings init(LogLevel logLevel)
logLevel - 日志等级
public static Logger.Settings init(String tag)
tag - 日志tag
public static Logger.Settings init(LogLevel logLevel,
String tag)
logLevel - 日志等级tag - 日志tag
public static void d(String message)
public static void d(String message,
int methodCount)
message - methodCount - 0-5public static void e(String message)
public static void e(Exception e)
public static void e(String message,
int methodCount)
message - methodCount - 0-5
public static void e(String message,
Exception e)
public static void e(String message,
Throwable t)
public static void e(Throwable t)
public static void e(String message,
Exception e,
int methodCount)
message - e - methodCount - 0-5public static void w(String message)
public static void w(String message,
int methodCount)
message - methodCount - 0-5public static void i(String message)
public static void i(String message,
int methodCount)
message - methodCount - 0-5public static void v(String message)
public static void v(String message,
int methodCount)
message - methodCount - 0-5public static void wtf(String message)
public static void wtf(String message,
int methodCount)
message - methodCount - 0-5public static void json(String json)
json - the json content
public static void json(String json,
int methodCount)
json - methodCount - 0-5
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||