MCPcopy
hub / github.com/subquery/subql / LoggerOption

Interface LoggerOption

packages/utils/src/logger/logger.ts:11–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9import {colorizeLevel, ctx} from './colors';
10import {LEVELS, LEVELS_MAP} from './constants';
11export interface LoggerOption {
12 level?: string;
13 filepath?: string;
14 rotate?: boolean;
15 nestedKey?: string;
16 outputFormat?: 'json' | 'colored';
17 /**
18 * Set the debug level for specific child loggers
19 * */
20 debugFilter?: string[];
21}
22
23function formatErrorString(err: unknown, stack = false): string {
24 if (err instanceof Error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected