diff --git a/src/main/java/xbot/common/advantage/AKitLogger.java b/src/main/java/xbot/common/advantage/AKitLogger.java index 21920875..1b4a1a77 100644 --- a/src/main/java/xbot/common/advantage/AKitLogger.java +++ b/src/main/java/xbot/common/advantage/AKitLogger.java @@ -46,6 +46,10 @@ public AKitLogger(IPropertySupport parent) { this(parent.getPrefix()); } + public AKitLogger(Object object) { + this(object.getClass().getName() + "/"); + } + /** * Temporarily changes the log level for this logger while running the provided code. * This is useful for cases where you want to log something at a different level than the rest of the logger's logs.