Updated Home (markdown)

Henri Schubin 2023-01-30 23:25:40 +02:00
parent bc264445b4
commit 245caf5318

@ -118,15 +118,15 @@ public interface Player {
## Logging
In order to deal with dependencies which use Slf4j, DiscordSRV has it's own implementation of it that is relocated to `com.discordsrv.dependencies.org.slf4j`(`.impl`) which redirects log messages to DiscordSRV's own logger as shown in the below illustration.
In order to deal with dependencies which use Slf4j, DiscordSRV has it's own implementation of it, that is relocated to `com.discordsrv.dependencies.org.slf4j`(`.impl`) which redirects log messages to DiscordSRV's own logger as shown in the below illustration.
DiscordSRV's own logging happens through `DiscordSRV#logger` and `Module`s and other types should use the `NamedLogger` proxy to specify the name of the component the log messages are for. This is the replacement for the `Debug` categories in DiscordSRV1.
All log messages flow through `DiscordSRVLogger`, which...
- Filters & cleans up log messages (from dependencies)
- Stores them as log files for debugging
- Stores them as log files for debugging (with logger names)
+ Keeps 3 files, rolling over when DiscordSRV is initialized
- And forwards them to the platform's logger
- And forwards them to the platform's logger (without logger names)
Illustration of the above
![](https://i.imgur.com/l7QrB2H.png)