@decohere/scribe 0.0.1-dev.97 → 0.0.1-dev.99
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.
|
@@ -64,7 +64,6 @@ class ConsoleAdapter extends _loggeradapter.LogAdapter {
|
|
|
64
64
|
isLevelEnabled: (level)=>(allLevels[level] ?? 0) >= threshold
|
|
65
65
|
});
|
|
66
66
|
for (const [levelName, levelValue] of Object.entries(allLevels)){
|
|
67
|
-
// biome-ignore lint/suspicious/noExplicitAny: Dynamic logger level creation requires any
|
|
68
67
|
logger[levelName] = levelValue >= threshold ? logFunction(levelName) : noop;
|
|
69
68
|
}
|
|
70
69
|
return logger;
|
|
@@ -33,7 +33,6 @@ class LogAdapter {
|
|
|
33
33
|
async [Symbol.asyncDispose]() {
|
|
34
34
|
// Console / no-op adapters have nothing to release.
|
|
35
35
|
}
|
|
36
|
-
// biome-ignore lint/suspicious/noExplicitAny: Generic utility method needs flexible typing
|
|
37
36
|
getLogLevels(options) {
|
|
38
37
|
const { customOnly, customLevels } = options;
|
|
39
38
|
if (customOnly) {
|
|
@@ -54,7 +54,6 @@ export class ConsoleAdapter extends LogAdapter {
|
|
|
54
54
|
isLevelEnabled: (level)=>(allLevels[level] ?? 0) >= threshold
|
|
55
55
|
});
|
|
56
56
|
for (const [levelName, levelValue] of Object.entries(allLevels)){
|
|
57
|
-
// biome-ignore lint/suspicious/noExplicitAny: Dynamic logger level creation requires any
|
|
58
57
|
logger[levelName] = levelValue >= threshold ? logFunction(levelName) : noop;
|
|
59
58
|
}
|
|
60
59
|
return logger;
|
|
@@ -15,7 +15,6 @@ export class LogAdapter {
|
|
|
15
15
|
async [Symbol.asyncDispose]() {
|
|
16
16
|
// Console / no-op adapters have nothing to release.
|
|
17
17
|
}
|
|
18
|
-
// biome-ignore lint/suspicious/noExplicitAny: Generic utility method needs flexible typing
|
|
19
18
|
getLogLevels(options) {
|
|
20
19
|
const { customOnly, customLevels } = options;
|
|
21
20
|
if (customOnly) {
|