The EventLogger code snippet present on this page shows the config can be applied like this:
import { EventLogger } from 'wechaty-plugin-contrib'
const config = ['login', 'ready', 'message']
wechaty.use(EventLogger(config))
But while adding the EventLogger plugin to a bot, it doesn't take the config like that and produces an error:

Code snippet of the bot I am trying to build:
import { Wechaty } from 'wechaty'
import { EventLogger } from 'wechaty-plugin-contrib'
const config = ['login', 'ready', 'message']
const bot = new Wechaty({
name: 'event-logger-bot',
})
bot.use(EventLogger(config))
bot.start()
Let me know how can I apply the config to the EventLogger.
The EventLogger code snippet present on this page shows the config can be applied like this:
But while adding the
EventLoggerplugin to a bot, it doesn't take the config like that and produces an error:Code snippet of the bot I am trying to build:
Let me know how can I apply the config to the
EventLogger.