How do I create a Logger for every event?
I'm trying to create a logger for every event I cover, I alredy did it in the past but it was a bit messy. I had many lines of code in the events files. I was wondering if there was a better and cleaner way of doing so.
I thought I (maybe) use a somewhat revisited event handler like the one I'm using: But I can't really see how
2 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!I was thinking about making one big file with every event like
But I think yours make more sense now that I undestand it better