Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to limit logging on wifi only #14

Open
wants to merge 2 commits into
base: master
from
Open
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Added wifi limit in readme

  • Loading branch information
linakis committed Dec 15, 2017
commit b73702b2c3c69bdbffed992628dce6828339a2ac
@@ -29,6 +29,14 @@ Usage
Timber.i("hello world");
```


##### Limit on WiFi (optional)
If you want to reduce cellular data traffic you can limit logging only when connected to a WiFi network. If this s the case you need to add the `android.permission.ACCESS_NETWORK_STATE` in your AndroidManifest and Plant the `LogglyTree` with the limit.
```java
LogglyTree wifiLimitedLogglyTree = new LogglyTree(LOGGLY_TOKEN).limitWifi(this);
Timber.plant(wifiLimitedLogglyTree);
```

Download
--------

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.