Skip to content

Commit

Permalink
Fix the logging documentation
Browse files Browse the repository at this point in the history
The PlainLogger is not loaded by default. It must be required.
  • Loading branch information
wilsonsilva committed Apr 13, 2024
1 parent defeba1 commit fe9414b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/common-use-cases/logging-and-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```

Expand Down

0 comments on commit fe9414b

Please sign in to comment.