diff --git a/package.json b/package.json index a980a6a..0ce58ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/logging", - "version": "2.4.1", + "version": "2.4.2", "description": "", "main": "out/index.js", "types": "out/index.d.ts", diff --git a/src/consolewriter.ts b/src/consolewriter.ts index ed10e17..ccfd39e 100644 --- a/src/consolewriter.ts +++ b/src/consolewriter.ts @@ -11,7 +11,7 @@ import { const browser = typeof window !== "undefined"; export class ConsoleAdapter implements Adapter { - constructor(private colors?: boolean) {} + constructor(private colors: boolean = true) {} init(observable: ObservableInterface) { observable.subscribe(this.onMessage.bind(this));