ueberdosis / hocuspocus

The CRDT Yjs WebSocket backend for conflict-free real-time collaboration in your app.
https://tiptap.dev/docs/hocuspocus/introduction
MIT License
1.21k stars 117 forks source link

Improve Logger Extension #773

Closed bencarletonn closed 7 months ago

bencarletonn commented 8 months ago

Right now, the logger extension doesn't have any affect on the hocuspocus instances debugger property. I'm not sure if it was intended to work this way, but I feel that it would make much more sense for the logger to be accessible in other extensions such that we are able to control how logs are handled in pre-built extensions, i.e. redis and have a generic way of exposing a global logger to all extensions.

I've also added some other common methods such as debug and info, which most common loggers would expose.