mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-25 12:25:15 +01:00
Updated Home (markdown)
parent
bc264445b4
commit
245caf5318
6
Home.md
6
Home.md
@ -118,15 +118,15 @@ public interface Player {
|
|||||||
|
|
||||||
## Logging
|
## 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.
|
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...
|
All log messages flow through `DiscordSRVLogger`, which...
|
||||||
- Filters & cleans up log messages (from dependencies)
|
- 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
|
+ 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
|
Illustration of the above
|
||||||
![](https://i.imgur.com/l7QrB2H.png)
|
![](https://i.imgur.com/l7QrB2H.png)
|
||||||
|
Loading…
Reference in New Issue
Block a user