Comparing version
{ | ||
"name": "ololog", | ||
"version": "1.1.140", | ||
"version": "1.1.141", | ||
"description": "Logging. Colors. Terminals & browsers. Show call locations. Pretty prints objects, Errors, anything!", | ||
@@ -5,0 +5,0 @@ "main": "build/ololog.js", |
@@ -591,3 +591,16 @@ # Ololog! | ||
You can also use [*Custom Methods*](https://github.com/xpl/ololog#adding-custom-helper-methods) feature to make it even more concise: | ||
```javascript | ||
log = log.methods ({ | ||
// adds `clusterId` helper | ||
clusterId (n) { return this.configure ({ tag: { clusterId: n } }) } | ||
}) | ||
log.clusterId (1) ('foo') | ||
log.clusterId (3) .info ('bar') | ||
log.clusterId (27).error ('a multiline\nerror\nmessage') | ||
``` | ||
# Limiting Max Argument Length | ||
@@ -594,0 +607,0 @@ |
724347
0.06%710
1.87%