@dxos/log
Advanced tools
Comparing version 0.1.41-next.d517c89 to 0.1.42-next.6e229fb
@@ -1,1 +0,1 @@ | ||
{"inputs":{"packages/common/log/src/config.ts":{"bytes":3811,"imports":[]},"packages/common/log/src/scope.ts":{"bytes":3793,"imports":[]},"packages/common/log/src/context.ts":{"bytes":6783,"imports":[{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"}]},"packages/common/log/src/platform/browser/index.ts":{"bytes":1225,"imports":[]},"packages/common/log/src/platform/index.ts":{"bytes":368,"imports":[{"path":"packages/common/log/src/platform/browser/index.ts","kind":"import-statement","original":"./node"}]},"packages/common/log/src/processors/console-processor.ts":{"bytes":11024,"imports":[{"path":"chalk","kind":"import-statement","external":true},{"path":"lodash.pickby","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/debug-processor.ts":{"bytes":986,"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true}]},"packages/common/log/src/processors/browser-processor.ts":{"bytes":12988,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/index.ts":{"bytes":617,"imports":[{"path":"packages/common/log/src/processors/console-processor.ts","kind":"import-statement","original":"./console-processor"},{"path":"packages/common/log/src/processors/debug-processor.ts","kind":"import-statement","original":"./debug-processor"},{"path":"packages/common/log/src/processors/browser-processor.ts","kind":"import-statement","original":"./browser-processor"}]},"packages/common/log/src/options.ts":{"bytes":7261,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/platform/index.ts","kind":"import-statement","original":"./platform"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"}]},"packages/common/log/src/log.ts":{"bytes":7187,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/options.ts","kind":"import-statement","original":"./options"}]},"packages/common/log/src/experimental/ownership.ts":{"bytes":9152,"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true}]},"packages/common/log/src/index.ts":{"bytes":948,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"./context"},{"path":"packages/common/log/src/log.ts","kind":"import-statement","original":"./log"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"},{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"},{"path":"packages/common/log/src/experimental/ownership.ts","kind":"import-statement","original":"./experimental/ownership"}]}},"outputs":{"packages/common/log/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":32363},"packages/common/log/dist/lib/browser/index.mjs":{"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"lodash.pickby","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true}],"exports":["BROWSER_PROCESSOR","CONSOLE_PROCESSOR","DEBUG_PROCESSOR","DEFAULT_FORMATTER","LogLevel","LogProcessorType","SHORT_FORMATTER","gatherLogInfoFromScope","getContextFromEntry","getCurrentOwnershipScope","levels","log","logInfo","shortLevelName","shouldLog","truncate"],"entryPoint":"packages/common/log/src/index.ts","inputs":{"packages/common/log/src/config.ts":{"bytesInOutput":818},"packages/common/log/src/index.ts":{"bytesInOutput":0},"packages/common/log/src/scope.ts":{"bytesInOutput":662},"packages/common/log/src/context.ts":{"bytesInOutput":1034},"packages/common/log/src/options.ts":{"bytesInOutput":1618},"packages/common/log/src/platform/browser/index.ts":{"bytesInOutput":140},"packages/common/log/src/platform/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/console-processor.ts":{"bytesInOutput":2263},"packages/common/log/src/processors/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/debug-processor.ts":{"bytesInOutput":156},"packages/common/log/src/processors/browser-processor.ts":{"bytesInOutput":2704},"packages/common/log/src/log.ts":{"bytesInOutput":1387},"packages/common/log/src/experimental/ownership.ts":{"bytesInOutput":826}},"bytes":12447}}} | ||
{"inputs":{"packages/common/log/src/config.ts":{"bytes":3890,"imports":[]},"packages/common/log/src/scope.ts":{"bytes":3793,"imports":[]},"packages/common/log/src/context.ts":{"bytes":6792,"imports":[{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"}]},"packages/common/log/src/platform/browser/index.ts":{"bytes":1225,"imports":[]},"packages/common/log/src/platform/index.ts":{"bytes":368,"imports":[{"path":"packages/common/log/src/platform/browser/index.ts","kind":"import-statement","original":"./node"}]},"packages/common/log/src/processors/console-processor.ts":{"bytes":11006,"imports":[{"path":"chalk","kind":"import-statement","external":true},{"path":"lodash.pickby","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/debug-processor.ts":{"bytes":986,"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true}]},"packages/common/log/src/processors/browser-processor.ts":{"bytes":12824,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/index.ts":{"bytes":617,"imports":[{"path":"packages/common/log/src/processors/console-processor.ts","kind":"import-statement","original":"./console-processor"},{"path":"packages/common/log/src/processors/debug-processor.ts","kind":"import-statement","original":"./debug-processor"},{"path":"packages/common/log/src/processors/browser-processor.ts","kind":"import-statement","original":"./browser-processor"}]},"packages/common/log/src/options.ts":{"bytes":7261,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/platform/index.ts","kind":"import-statement","original":"./platform"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"}]},"packages/common/log/src/log.ts":{"bytes":7187,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/options.ts","kind":"import-statement","original":"./options"}]},"packages/common/log/src/experimental/ownership.ts":{"bytes":9152,"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true}]},"packages/common/log/src/index.ts":{"bytes":1101,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"./context"},{"path":"packages/common/log/src/log.ts","kind":"import-statement","original":"./log"},{"path":"packages/common/log/src/options.ts","kind":"import-statement","original":"./options"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"},{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"},{"path":"packages/common/log/src/experimental/ownership.ts","kind":"import-statement","original":"./experimental/ownership"}]}},"outputs":{"packages/common/log/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":32332},"packages/common/log/dist/lib/browser/index.mjs":{"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"lodash.pickby","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true}],"exports":["BROWSER_PROCESSOR","CONSOLE_PROCESSOR","DEBUG_PROCESSOR","DEFAULT_FORMATTER","LogLevel","LogProcessorType","SHORT_FORMATTER","gatherLogInfoFromScope","getContextFromEntry","getCurrentOwnershipScope","levels","log","logInfo","parseFilter","shortLevelName","shouldLog","truncate"],"entryPoint":"packages/common/log/src/index.ts","inputs":{"packages/common/log/src/config.ts":{"bytesInOutput":821},"packages/common/log/src/index.ts":{"bytesInOutput":0},"packages/common/log/src/scope.ts":{"bytesInOutput":662},"packages/common/log/src/context.ts":{"bytesInOutput":1129},"packages/common/log/src/options.ts":{"bytesInOutput":1618},"packages/common/log/src/platform/browser/index.ts":{"bytesInOutput":140},"packages/common/log/src/platform/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/console-processor.ts":{"bytesInOutput":2198},"packages/common/log/src/processors/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/debug-processor.ts":{"bytesInOutput":156},"packages/common/log/src/processors/browser-processor.ts":{"bytesInOutput":2550},"packages/common/log/src/log.ts":{"bytesInOutput":1387},"packages/common/log/src/experimental/ownership.ts":{"bytesInOutput":826}},"bytes":12341}}} |
@@ -1,1 +0,1 @@ | ||
{"inputs":{"packages/common/log/src/config.ts":{"bytes":3811,"imports":[]},"packages/common/log/src/scope.ts":{"bytes":3793,"imports":[]},"packages/common/log/src/context.ts":{"bytes":6783,"imports":[{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"}]},"packages/common/log/src/platform/node/index.ts":{"bytes":2356,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"js-yaml","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}]},"packages/common/log/src/platform/index.ts":{"bytes":368,"imports":[{"path":"packages/common/log/src/platform/node/index.ts","kind":"import-statement","original":"./node"}]},"packages/common/log/src/processors/console-processor.ts":{"bytes":11024,"imports":[{"path":"chalk","kind":"import-statement","external":true},{"path":"lodash.pickby","kind":"import-statement","external":true},{"path":"node:util","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/debug-processor.ts":{"bytes":986,"imports":[{"path":"node:util","kind":"import-statement","external":true}]},"packages/common/log/src/processors/browser-processor.ts":{"bytes":12988,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/index.ts":{"bytes":617,"imports":[{"path":"packages/common/log/src/processors/console-processor.ts","kind":"import-statement","original":"./console-processor"},{"path":"packages/common/log/src/processors/debug-processor.ts","kind":"import-statement","original":"./debug-processor"},{"path":"packages/common/log/src/processors/browser-processor.ts","kind":"import-statement","original":"./browser-processor"}]},"packages/common/log/src/options.ts":{"bytes":7261,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/platform/index.ts","kind":"import-statement","original":"./platform"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"}]},"packages/common/log/src/log.ts":{"bytes":7187,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/options.ts","kind":"import-statement","original":"./options"}]},"packages/common/log/src/experimental/ownership.ts":{"bytes":9152,"imports":[{"path":"node:util","kind":"import-statement","external":true}]},"packages/common/log/src/index.ts":{"bytes":948,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"./context"},{"path":"packages/common/log/src/log.ts","kind":"import-statement","original":"./log"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"},{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"},{"path":"packages/common/log/src/experimental/ownership.ts","kind":"import-statement","original":"./experimental/ownership"}]}},"outputs":{"packages/common/log/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":33315},"packages/common/log/dist/lib/node/index.cjs":{"imports":[{"path":"lodash.defaultsdeep","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"js-yaml","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"chalk","kind":"require-call","external":true},{"path":"lodash.pickby","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/common/log/src/index.ts","inputs":{"packages/common/log/src/index.ts":{"bytesInOutput":719},"packages/common/log/src/config.ts":{"bytesInOutput":818},"packages/common/log/src/scope.ts":{"bytesInOutput":662},"packages/common/log/src/context.ts":{"bytesInOutput":1038},"packages/common/log/src/options.ts":{"bytesInOutput":1662},"packages/common/log/src/platform/node/index.ts":{"bytesInOutput":542},"packages/common/log/src/platform/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/console-processor.ts":{"bytesInOutput":2418},"packages/common/log/src/processors/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/debug-processor.ts":{"bytesInOutput":165},"packages/common/log/src/processors/browser-processor.ts":{"bytesInOutput":2707},"packages/common/log/src/log.ts":{"bytesInOutput":1387},"packages/common/log/src/experimental/ownership.ts":{"bytesInOutput":830}},"bytes":15297}}} | ||
{"inputs":{"packages/common/log/src/config.ts":{"bytes":3890,"imports":[]},"packages/common/log/src/scope.ts":{"bytes":3793,"imports":[]},"packages/common/log/src/context.ts":{"bytes":6792,"imports":[{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"}]},"packages/common/log/src/platform/node/index.ts":{"bytes":2356,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"js-yaml","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}]},"packages/common/log/src/platform/index.ts":{"bytes":368,"imports":[{"path":"packages/common/log/src/platform/node/index.ts","kind":"import-statement","original":"./node"}]},"packages/common/log/src/processors/console-processor.ts":{"bytes":11006,"imports":[{"path":"chalk","kind":"import-statement","external":true},{"path":"lodash.pickby","kind":"import-statement","external":true},{"path":"node:util","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/debug-processor.ts":{"bytes":986,"imports":[{"path":"node:util","kind":"import-statement","external":true}]},"packages/common/log/src/processors/browser-processor.ts":{"bytes":12824,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"../config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"../context"}]},"packages/common/log/src/processors/index.ts":{"bytes":617,"imports":[{"path":"packages/common/log/src/processors/console-processor.ts","kind":"import-statement","original":"./console-processor"},{"path":"packages/common/log/src/processors/debug-processor.ts","kind":"import-statement","original":"./debug-processor"},{"path":"packages/common/log/src/processors/browser-processor.ts","kind":"import-statement","original":"./browser-processor"}]},"packages/common/log/src/options.ts":{"bytes":7261,"imports":[{"path":"lodash.defaultsdeep","kind":"import-statement","external":true},{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/platform/index.ts","kind":"import-statement","original":"./platform"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"}]},"packages/common/log/src/log.ts":{"bytes":7187,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/options.ts","kind":"import-statement","original":"./options"}]},"packages/common/log/src/experimental/ownership.ts":{"bytes":9152,"imports":[{"path":"node:util","kind":"import-statement","external":true}]},"packages/common/log/src/index.ts":{"bytes":1101,"imports":[{"path":"packages/common/log/src/config.ts","kind":"import-statement","original":"./config"},{"path":"packages/common/log/src/context.ts","kind":"import-statement","original":"./context"},{"path":"packages/common/log/src/log.ts","kind":"import-statement","original":"./log"},{"path":"packages/common/log/src/options.ts","kind":"import-statement","original":"./options"},{"path":"packages/common/log/src/processors/index.ts","kind":"import-statement","original":"./processors"},{"path":"packages/common/log/src/scope.ts","kind":"import-statement","original":"./scope"},{"path":"packages/common/log/src/experimental/ownership.ts","kind":"import-statement","original":"./experimental/ownership"}]}},"outputs":{"packages/common/log/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":33327},"packages/common/log/dist/lib/node/index.cjs":{"imports":[{"path":"lodash.defaultsdeep","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"js-yaml","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"chalk","kind":"require-call","external":true},{"path":"lodash.pickby","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/common/log/src/index.ts","inputs":{"packages/common/log/src/index.ts":{"bytesInOutput":753},"packages/common/log/src/config.ts":{"bytesInOutput":821},"packages/common/log/src/scope.ts":{"bytesInOutput":662},"packages/common/log/src/context.ts":{"bytesInOutput":1131},"packages/common/log/src/options.ts":{"bytesInOutput":1662},"packages/common/log/src/platform/node/index.ts":{"bytesInOutput":542},"packages/common/log/src/platform/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/console-processor.ts":{"bytesInOutput":2353},"packages/common/log/src/processors/index.ts":{"bytesInOutput":0},"packages/common/log/src/processors/debug-processor.ts":{"bytesInOutput":165},"packages/common/log/src/processors/browser-processor.ts":{"bytesInOutput":2553},"packages/common/log/src/log.ts":{"bytesInOutput":1387},"packages/common/log/src/experimental/ownership.ts":{"bytesInOutput":830}},"bytes":15223}}} |
@@ -6,7 +6,7 @@ import { LogProcessor } from './context'; | ||
export declare enum LogLevel { | ||
TRACE = -1, | ||
DEBUG = 0, | ||
INFO = 1, | ||
WARN = 2, | ||
ERROR = 3 | ||
TRACE = 5, | ||
DEBUG = 10, | ||
INFO = 11, | ||
WARN = 12, | ||
ERROR = 13 | ||
} | ||
@@ -17,7 +17,7 @@ export declare const levels: { | ||
export declare const shortLevelName: { | ||
[-1]: string; | ||
0: string; | ||
1: string; | ||
2: string; | ||
3: string; | ||
5: string; | ||
10: string; | ||
11: string; | ||
12: string; | ||
13: string; | ||
}; | ||
@@ -24,0 +24,0 @@ export declare enum LogProcessorType { |
@@ -1,2 +0,2 @@ | ||
import { LogConfig, LogLevel } from './config'; | ||
import { LogConfig, LogFilter, LogLevel } from './config'; | ||
/** | ||
@@ -41,4 +41,4 @@ * Optional object passed to the logging API. | ||
*/ | ||
export declare const shouldLog: (config: LogConfig, level: LogLevel, path: string) => boolean; | ||
export declare const shouldLog: (entry: LogEntry, filters?: LogFilter[]) => boolean; | ||
export declare const getContextFromEntry: (entry: LogEntry) => Record<string, any> | undefined; | ||
//# sourceMappingURL=context.d.ts.map |
export * from './config'; | ||
export * from './context'; | ||
export * from './log'; | ||
export { parseFilter } from './options'; | ||
export * from './processors'; | ||
@@ -5,0 +6,0 @@ export * from './scope'; |
{ | ||
"name": "@dxos/log", | ||
"version": "0.1.41-next.d517c89", | ||
"version": "0.1.42-next.6e229fb", | ||
"description": "Logger", | ||
@@ -24,3 +24,3 @@ "homepage": "https://dxos.org", | ||
"lodash.pickby": "^4.6.0", | ||
"@dxos/node-std": "0.1.41-next.d517c89" | ||
"@dxos/node-std": "0.1.42-next.6e229fb" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
@@ -10,8 +10,9 @@ // | ||
*/ | ||
// NOTE: Keep aligned with LogLevel in @dxos/protocols. | ||
export enum LogLevel { | ||
TRACE = -1, | ||
DEBUG = 0, | ||
INFO = 1, | ||
WARN = 2, | ||
ERROR = 3 | ||
TRACE = 5, | ||
DEBUG = 10, | ||
INFO = 11, | ||
WARN = 12, | ||
ERROR = 13 | ||
} | ||
@@ -18,0 +19,0 @@ |
@@ -60,7 +60,7 @@ // | ||
*/ | ||
export const shouldLog = (config: LogConfig, level: LogLevel, path: string): boolean => { | ||
if (config.filters === undefined) { | ||
export const shouldLog = (entry: LogEntry, filters?: LogFilter[]): boolean => { | ||
if (filters === undefined) { | ||
return true; | ||
} else { | ||
return config.filters.some((filter) => matchFilter(filter, level, path)); | ||
return filters.some((filter) => matchFilter(filter, entry.level, entry.meta?.file ?? '')); | ||
} | ||
@@ -67,0 +67,0 @@ }; |
@@ -8,2 +8,3 @@ // | ||
export * from './log'; | ||
export { parseFilter } from './options'; | ||
export * from './processors'; | ||
@@ -10,0 +11,0 @@ export * from './scope'; |
@@ -40,3 +40,3 @@ // | ||
const APP_BROWSER_PROCESSOR: LogProcessor = (config, entry) => { | ||
if (!shouldLog(config, entry.level, entry.meta?.file ?? '')) { | ||
if (!shouldLog(entry, config.filters)) { | ||
return; | ||
@@ -98,3 +98,3 @@ } | ||
const TEST_BROWSER_PROCESSOR: LogProcessor = (config, entry) => { | ||
if (!shouldLog(config, entry.level, entry.meta?.file ?? '')) { | ||
if (!shouldLog(entry, config.filters)) { | ||
return; | ||
@@ -101,0 +101,0 @@ } |
@@ -79,3 +79,3 @@ // | ||
const { level, message, meta, error } = entry; | ||
if (!shouldLog(config, level, meta?.file ?? '')) { | ||
if (!shouldLog(entry, config.filters)) { | ||
return; | ||
@@ -82,0 +82,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
143631
1868
+ Added@dxos/node-std@0.1.42-next.6e229fb(transitive)
- Removed@dxos/node-std@0.1.41-next.d517c89(transitive)