@studio/log
Advanced tools
+4
-0
| # Changes | ||
| ## 1.7.0 | ||
| - 🍏 Allow to add filters directly to a child namespace | ||
| ## 1.6.0 | ||
@@ -4,0 +8,0 @@ |
+6
-2
@@ -133,4 +133,8 @@ /* | ||
| filter(filter_stream) { | ||
| filter(this.ns, filter_stream); | ||
| filter(ns, filter_stream) { | ||
| if (typeof ns === 'string') { | ||
| filter(`${this.ns} ${ns}`, filter_stream); | ||
| } else { | ||
| filter(this.ns, ns); | ||
| } | ||
| } | ||
@@ -137,0 +141,0 @@ |
+1
-1
| { | ||
| "name": "@studio/log", | ||
| "version": "1.6.0", | ||
| "version": "1.7.0", | ||
| "description": "A tiny JSON logger with emoji support", | ||
@@ -5,0 +5,0 @@ "bin": { |
+2
-2
@@ -142,4 +142,4 @@ # Studio Log | ||
| object. | ||
| - `log.filter(stream)`: Configure a filter stream for this logger namespace. | ||
| See ["Filter Streams"](#filter-streams). | ||
| - `log.filter([ns, ]stream)`: Configure a filter stream for this logger or a | ||
| child logger namespace. See ["Filter Streams"](#filter-streams). | ||
| - `log.mute()`: Mute this logger namespace. | ||
@@ -146,0 +146,0 @@ |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
28443
0.67%560
0.72%