-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
This is utility library that provides new log4j2 configuration utilities | ||
## [LoggerNameRewritePolicy](src/main/java/xyz/bobkinn/log4jutils/LoggerNameRewritePolicy.java) | ||
Rewrites logger name | ||
```xml | ||
<Rewrite name="rewrite"> | ||
<LoggerNameRewritePolicy> | ||
<KeyValuePair key="com.sedmelluq.lava." value="LavaPlayer"/> | ||
</LoggerNameRewritePolicy> | ||
<AppenderRef ref="rewrite1"/> | ||
</Rewrite> | ||
``` | ||
This config above replaces logger names that starts with `com.sedmelluq.lava.` with `LavaPlayer`.\ | ||
One pair can specify multiple keys by separating them with `,` like `key="com.sedmelluq.lava.,MyAudioLoader"`.\ | ||
If key ends with `.` symbol, then this replacement will be used if original logger name starts with this key, or if not then original logger name must match key |