From 33d52f51b31544d800f90e112c004794b91b3f1f Mon Sep 17 00:00:00 2001 From: RiceWithMeat <47690223+RiceWithMeat@users.noreply.github.com> Date: Mon, 23 Dec 2024 23:42:36 +0700 Subject: [PATCH] =?UTF-8?q?#102=20=F0=9F=90=98=20remove=20enabled=20flag?= =?UTF-8?q?=20for=20logger=20in=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 461a47fc..0739c420 100644 --- a/README.md +++ b/README.md @@ -666,7 +666,6 @@ You can log requests and responses using `log` function in any [interceptor](#in `logger` parameter has the following optional properties -- `enabled` `boolean` draw log or not, `true` by default - `tokenOptions` `LoggerTokenOptions` object map containing tokens to log. Keys is token names, values is boolean. `true` will add token into log, `false` will remove. If tokenOptions is not passed, following tokens will be logged - Request - type @@ -684,7 +683,7 @@ You can log requests and responses using `log` function in any [interceptor](#in - data - `rewrite` `(tokenValues: Partial) => void` function to customize default `console.dir(tokenValues, { depth: null })` appearance -`log` function returns object with logged token values or `null` if log was not `enabled` +`log` function returns object with logged token values ```javascript /** @type {import('mock-config-server').MockServerConfig} */