Package com.kraken.api.overlay.log
Class PluginLogger
- java.lang.Object
-
- com.kraken.api.overlay.log.PluginLogger
-
public class PluginLogger extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PluginLogger()PluginLogger(int maxEntries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattach(java.lang.String pluginPackage)Call fromPlugin#startUp.voidclear()voiddetach()Call fromPlugin#shutDown.java.util.List<LogEntry>getEntries()
-
-
-
Method Detail
-
attach
public void attach(java.lang.String pluginPackage)
Call fromPlugin#startUp. Attaches to the Logback logger for the given package, capturing every @Slf4j call in any class underneath it.- Parameters:
pluginPackage- Root package of the plugin, e.g. "com.example.myplugin"
-
detach
public void detach()
Call fromPlugin#shutDown. Removes the appender and clears the buffer.
-
getEntries
public java.util.List<LogEntry> getEntries()
-
clear
public void clear()
-
-