mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-22 11:55:54 +01:00
Updated Home (markdown)
parent
bc264445b4
commit
245caf5318
6
Home.md
6
Home.md
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user