mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
12 lines
395 B
Diff
12 lines
395 B
Diff
--- a/com/mojang/logging/LogUtils.java
|
|
+++ b/com/mojang/logging/LogUtils.java
|
|
@@ -61,4 +_,9 @@
|
|
public static Logger getLogger() {
|
|
return LoggerFactory.getLogger(STACK_WALKER.getCallerClass());
|
|
}
|
|
+ // Paper start
|
|
+ public static Logger getClassLogger() {
|
|
+ return LoggerFactory.getLogger(STACK_WALKER.getCallerClass().getSimpleName());
|
|
+ }
|
|
+ // Paper end
|
|
}
|