Skip to content

Commit

Permalink
- tag feature added
Browse files Browse the repository at this point in the history
- readme updated
  • Loading branch information
orhanobut committed Mar 23, 2015
1 parent c33ec58 commit 02b3cea
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,21 @@ Logger.wtf("hello");
Logger.json(JSON_CONTENT);
```

### Change TAG
Either change tag for whole logs
```java
Logger.init(YOUR_TAG);
```

or you can also use different tags for each log. Custom tag will be concat with TAG. Thus you will be able to use
filter for both.

```java
Logger.d("mytag", "hello");
```
<img src='https://github.com/orhanobut/logger/blob/master/images/custom-tag.png'/>


### Settings (optional)
Change the settings with init. This should be called only once. Best place would be in application class
```java
Expand Down Expand Up @@ -114,16 +129,15 @@ Logger will show the cause of the exception
Logger.e(exception);
```

### Change TAG
```java
Logger.init(YOUR_TAG);
```

### Notes
For the better result, use filter
- For the better result, use filter

<img src='https://github.com/orhanobut/logger/blob/master/images/filter.png'/>

- Make sure that wrap option is disabled

<img src='https://github.com/orhanobut/logger/blob/master/images/wrap-closed.png'/>


#### You might also like
- [Hawk](https://github.com/orhanobut/hawk) Simple,powerful,secure key-value storage
Expand Down
Binary file added images/custom-tag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/wrap-closed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 02b3cea

Please sign in to comment.