Is there a way to create a custom logger for Discord.JS errors.

I am looking for some more information on how I would go about formatting Discord.JS errors, to show the information I want. I.e like a custom logger, but I am unsure of how I would retrieve the error in the first place.
3 Replies
souji
souji3y ago
you see the available info there, what more do you need to know?
Noxxe
NoxxeOP3y ago
I just want to format it better, because I am sorting all the logging out so that it is all organised. Basically I am just looking on how i would pass the error through a custom logger function so that I customise the format of it, that's all.
souji
souji3y ago
i still don't know what more to tell you, you get the error, with all the properties you logged out, format them as you wish has a name, has a method, has a path, has a code, hast a httpStatus, etc.
Want results from more Discord servers?
Add your server