@crazyorr/timber
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@crazyorr/timber", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "JavaScript port of Android's timber library.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -14,3 +14,6 @@ JavaScript port of Android's [timber](https://github.com/JakeWharton/timber) library. | ||
```javascript | ||
// Plant a tree | ||
// import timber | ||
const {Timber, DebugTree} = require('@crazyorr/timber'); | ||
// Plant a default debug tree which directs logs to console | ||
Timber.plant(new DebugTree()); | ||
@@ -32,2 +35,6 @@ | ||
```javascript | ||
// import timber | ||
const {Timber, Tree, Level} = require('@crazyorr/timber'); | ||
// Customize a tree's behavior by extending the Tree class, send logs to anywhere you want | ||
class CustomTree extends Tree { | ||
@@ -56,3 +63,6 @@ | ||
// Plant a customized tree | ||
Timber.plant(new CustomTree()); | ||
// You can plant as many trees as you want | ||
// Timber.plant(new CustomTree()); ... | ||
``` | ||
@@ -59,0 +69,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16596
78