diff --git a/README.md b/README.md new file mode 100644 index 0000000..46c4197 --- /dev/null +++ b/README.md @@ -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 + + + + + + +``` +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