@decohere/scribe 0.0.1-dev.122 → 0.0.1-dev.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,7 +21,7 @@ class scribe {
|
|
|
21
21
|
static instance = new scribe();
|
|
22
22
|
static logger(name, customLevels) {
|
|
23
23
|
// Apply custom levels once against the active adapter; the live handle
|
|
24
|
-
// re-resolves the underlying logger on each use
|
|
24
|
+
// re-resolves the underlying logger on each use.
|
|
25
25
|
if (customLevels) {
|
|
26
26
|
scribe.instance.getLogger(name, customLevels);
|
|
27
27
|
}
|
|
@@ -169,7 +169,7 @@ class scribe {
|
|
|
169
169
|
mergeDefaults(options) {
|
|
170
170
|
const logLevel = (0, _env.resolveLogLevel)(options?.logLevel) ?? _types.DefaultLogLevel;
|
|
171
171
|
// Resolved logLevel must win over options spread (invalid explicit values
|
|
172
|
-
// would otherwise stick
|
|
172
|
+
// would otherwise stick).
|
|
173
173
|
return {
|
|
174
174
|
redactions: _types.DefaultRedactions,
|
|
175
175
|
...options,
|
|
@@ -11,7 +11,7 @@ export class scribe {
|
|
|
11
11
|
static instance = new scribe();
|
|
12
12
|
static logger(name, customLevels) {
|
|
13
13
|
// Apply custom levels once against the active adapter; the live handle
|
|
14
|
-
// re-resolves the underlying logger on each use
|
|
14
|
+
// re-resolves the underlying logger on each use.
|
|
15
15
|
if (customLevels) {
|
|
16
16
|
scribe.instance.getLogger(name, customLevels);
|
|
17
17
|
}
|
|
@@ -159,7 +159,7 @@ export class scribe {
|
|
|
159
159
|
mergeDefaults(options) {
|
|
160
160
|
const logLevel = resolveLogLevel(options?.logLevel) ?? DefaultLogLevel;
|
|
161
161
|
// Resolved logLevel must win over options spread (invalid explicit values
|
|
162
|
-
// would otherwise stick
|
|
162
|
+
// would otherwise stick).
|
|
163
163
|
return {
|
|
164
164
|
redactions: DefaultRedactions,
|
|
165
165
|
...options,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decohere/scribe",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.124",
|
|
4
4
|
"description": "Structured logging interface with pluggable adapters",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -8,6 +8,15 @@
|
|
|
8
8
|
"structured-logging",
|
|
9
9
|
"decohere"
|
|
10
10
|
],
|
|
11
|
+
"homepage": "https://github.com/typesmiths/decohere/tree/main/projects/scribe/scribe#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/typesmiths/decohere/issues"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/typesmiths/decohere.git",
|
|
18
|
+
"directory": "projects/scribe/scribe"
|
|
19
|
+
},
|
|
11
20
|
"license": "ISC",
|
|
12
21
|
"author": "Typesmiths",
|
|
13
22
|
"type": "module",
|