From 1dce27536aacb112ec9eafbd6b281268eb71155f Mon Sep 17 00:00:00 2001 From: Xennis Date: Tue, 24 Jun 2025 21:20:41 +0200 Subject: [PATCH] chore: Add logging section to readme --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 9d724bc..9b94f96 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,19 @@ Create a pull request or issue if something is missing. | `toggle` | ✅ | | | `video` | ➕ | embed possible: [YouTube example](https://xennis.github.io/react-notion-render/custom) | +## Logging + +The Notion client is not encapsulated, so you can enable logging as you normally would with the official Notion client. + +```tsx +import { Client, LogLevel } from "@notionhq/client" + +const client = new Client({ + auth: "", + logLevel: LogLevel.DEBUG, +}) +``` + ## Credits How to render the Notion blocks is inspired by [react-notion-x](https://github.com/NotionX/react-notion-x) started by [Travis Fischer](https://github.com/transitive-bullshit).