diff --git a/src/index.ts b/src/index.ts index d69252b..04cb90f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,3 @@ export { Logger } from "./logger"; export { LogLevelEnum } from "./log-level-enum.js"; +export { LoggerOptions } from "./logger-options"; diff --git a/src/logger-options.ts b/src/logger-options.ts new file mode 100644 index 0000000..9591915 --- /dev/null +++ b/src/logger-options.ts @@ -0,0 +1,5 @@ +export interface LoggerOptions { + includeBlackList?: string[]; + excludeBlackList?: string[]; + whiteList?: string[]; +} diff --git a/src/logger.ts b/src/logger.ts index 6dabdc6..e39f133 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -1,13 +1,8 @@ +import callSites from "callsites"; import stringify from "json-stringify-safe"; -import { LoggerFilter } from "./logger-filter"; import { LogLevelEnum } from "./log-level-enum"; -import callSites from "callsites"; - -interface LoggerOptions { - includeBlackList?: string[]; - excludeBlackList?: string[]; - whiteList?: string[]; -} +import { LoggerFilter } from "./logger-filter"; +import { LoggerOptions } from "./logger-options"; export class Logger { protected readonly logLevelsOrder: string[] = [