From 7f88c0d9c6cea3c960b3f079185e94b3efb9425e Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Thu, 13 Apr 2023 20:26:44 +0300 Subject: [PATCH] missing args definitions --- src/LoggerClient.ts | 10 +++++----- src/LoggerInterface.ts | 12 +++++++----- src/MasterLogger.ts | 10 +++++----- 3 files changed, 17 insertions(+), 15 deletions(-) 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.'); }