Logging Plugin
The library exports a default logging plugin that you can add your event bus to get standard logging out of the box. Please find the details here. It publishes events in a standard format similar to a REST API
[RECEIVED_TIME | PUBLISH_TIME] "EVENT_NAME (PUBLISH | CONSUME)"
(OK | DEPRECATED | ERROR) DURATION "X-REQUEST-ID" "EVENT-ID"
import { LoggingPlugin } from 'graphql-eventbus'
const myBus = new MyBus({
...,
plugins: [LoggingPlugin()]
})