Skip to content

Commit

Permalink
Extract LoggerOptions to their own file and export them into root
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagogoncalves89 committed Oct 1, 2020
1 parent 916dd27 commit c254934
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { Logger } from "./logger";
export { LogLevelEnum } from "./log-level-enum.js";
export { LoggerOptions } from "./logger-options";
5 changes: 5 additions & 0 deletions src/logger-options.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface LoggerOptions {
includeBlackList?: string[];
excludeBlackList?: string[];
whiteList?: string[];
}
11 changes: 3 additions & 8 deletions src/logger.ts
Original file line number Diff line number Diff line change
@@ -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[] = [
Expand Down

0 comments on commit c254934

Please sign in to comment.