From fe9414b7d6249c5ed596df034ecd5a55c9642b2f Mon Sep 17 00:00:00 2001 From: Wilson Silva Date: Sat, 13 Apr 2024 14:53:07 +0100 Subject: [PATCH] Fix the logging documentation The PlainLogger is not loaded by default. It must be required. --- docs/common-use-cases/logging-and-debugging.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/common-use-cases/logging-and-debugging.md b/docs/common-use-cases/logging-and-debugging.md index bbfc205..83f809c 100644 --- a/docs/common-use-cases/logging-and-debugging.md +++ b/docs/common-use-cases/logging-and-debugging.md @@ -45,6 +45,8 @@ log messages in a simple, readable format without any ANSI escape codes. To use the `PlainLogger`, pass it as the `logger` option when creating the client instance: ```ruby +require 'nostr/client/plain_logger' + client = Nostr::Client.new(logger: Nostr::Client::PlainLogger.new) ```