Closed MahdiBM closed 1 year ago
Hm, it's not really a stand-alone logger package... but I guess for discord that would be perhaps weird to begin with.
I don't mind adding a link to it :) I see you're handling metadata providers nicely even 👍 Feel free to send in a PR
Yeah its not standalone, and I did think of that. That's why you can only depend on DiscordLogger
instead of the whole DiscordBM
.
It will still pull more stuff than a standalone logger package would, but I think it should be fine.
Discord Logger
For what it's worth, I've personally moved to the publicized version of the logger since a few days ago, and everything has been going smoothly.
We're soon going to use the logger in Vapor community's Penny.
The logger also has a decent amount of tests.
It does take care of edge cases. For example, the logger:
And much more ...
If you need to review the implementation, the logger-related parts of the library are present in the DiscordLogger target and there is a Discord-logger section available in the README.