diff --git a/src/LoggerClient.ts b/src/LoggerClient.ts index d84e85e..96632d7 100644 --- a/src/LoggerClient.ts +++ b/src/LoggerClient.ts @@ -91,23 +91,23 @@ class LoggerClient implements Logger { // These methods are dynamically implemented by the constructor // eslint-disable-next-line @typescript-eslint/no-unused-vars - error (_str: string): void { + error (_str: string, _opts: WriteOptions): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - warn (_str: string): void { + warn (_str: string, _opts: WriteOptions): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - status (_str: string): void { + status (_str: string, _opts: WriteOptions): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - info (_str: string): void { + info (_str: string, _opts: WriteOptions): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - debug (_str: string): void { + debug (_str: string, _opts: WriteOptions): void { throw new Error('Method not implemented.'); } diff --git a/src/LoggerInterface.ts b/src/LoggerInterface.ts index fb6146f..5a70c29 100644 --- a/src/LoggerInterface.ts +++ b/src/LoggerInterface.ts @@ -1,7 +1,9 @@ +import { WriteOptions } from "./Types"; + export interface Logger { - error(str: string): void - warn(str: string): void - status(str: string): void - info(str: string): void - debug(str: string): void + error(str: string, opts: WriteOptions): void + warn(str: string, opts: WriteOptions): void + status(str: string, opts: WriteOptions): void + info(str: string, opts: WriteOptions): void + debug(str: string, opts: WriteOptions): void } \ No newline at end of file diff --git a/src/MasterLogger.ts b/src/MasterLogger.ts index 71578e3..ce1c8f7 100644 --- a/src/MasterLogger.ts +++ b/src/MasterLogger.ts @@ -228,23 +228,23 @@ class MasterLogger implements Logger { // These methods are dynamically implemented by the constructor // eslint-disable-next-line @typescript-eslint/no-unused-vars - error (_str: string): void { + error (_str: string, _opts: WriteOptions): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - warn (_str: string): void { + warn (_str: string, _opts: WriteOptions): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - status (_str: string): void { + status (_str: string, _opts: WriteOptions): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - info (_str: string): void { + info (_str: string, _opts: WriteOptions): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - debug (_str: string): void { + debug (_str: string, _opts: WriteOptions): void { throw new Error('Method not implemented.'); }