Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Commit

Permalink
1.更新logger的readme文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayvytr committed Mar 29, 2017
1 parent 6746959 commit f3ab561
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README_Logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ L.t(1).d("hello");

![](photos/logger/log5.png)

#### 更改方法栈偏移(方法调用信息将会前移数量,和前边一张图片比较一下)
#### 更改方法栈偏移(方法调用信息将会前移这个数量,和前边一张图片比较一下,聪明的你是不是又发现了什么?)
To integrate logger with other libraries, you can set the offset in order to avoid that library's methods.
```java
L.getSettings().methodOffset(10);
Expand Down Expand Up @@ -142,6 +142,7 @@ L
}

```

## 你的无(bian)理(tai)要求我都能满足

#### 默认的样子
Expand Down Expand Up @@ -197,6 +198,7 @@ L.getSettings().justShowMessage(true);
L.d();
L.w();
```

![](photos/logger/log11.png)

#### 我要屏蔽日志(试试看能不能打印出来?)
Expand All @@ -210,13 +212,13 @@ class CustomLogAdapter Implement LogAdapter {}
settings.logAdapter(new CustomLogAdapter())
```

### Notes
> # Notes
- 使用日志筛选,格式更整齐

![](photos/logger/filter.png)
> ![](photos/logger/filter.png)
- 确认关掉日志换行选项
> - 确认关掉日志换行选项
![](photos/logger/wrap-closed.png)
> ![](photos/logger/wrap-closed.png)
- Release使用LogLevel.NONE不输出任何日志
> - Release使用LogLevel.NONE不输出任何日志

0 comments on commit f3ab561

Please sign in to comment.