summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--std/log/README.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/std/log/README.md b/std/log/README.md
index b5e99525a..8f18a15d4 100644
--- a/std/log/README.md
+++ b/std/log/README.md
@@ -282,8 +282,12 @@ the message.
logger.debug(() => `this is expensive: ${expensiveFn(5)}`);
```
-NOTE: When using lazy log evaluation, `undefined` will be returned if the
-resolver function is not called because the logger won't log it. E.g.
+> NOTE: When using lazy log evaluation, `undefined` will be returned if the
+> resolver function is not called because the logger won't log it. It is an
+> antipattern use lazy evaluation with inline logging because the return value
+> depends on the current log level.
+
+Example:
```ts
await log.setup({