enjin / Enjin-Minecraft-Plugin

GNU General Public License v3.0
10 stars 10 forks source link

Only act on log events from Enjin loggers #26

Closed Scarsz closed 5 months ago

Scarsz commented 4 years ago

As it stands, this log filter will block message events from every logger. This change makes it only interact with messages from Enjin-based loggers.

Favorlock commented 4 years ago

I think plugin loggers use the plugin name from the plugin.yml as the name of the logger do they not? If so you'd also have to check loggers by the plugin name.

Vankka commented 3 years ago

Due to https://github.com/enjin/Enjin-Minecraft-Plugin/blob/b35e0a70f94bacc83b981716c82854fee2c6e9d6/bukkit/src/main/java/com/enjin/bukkit/util/Log.java#L33 the logger name would be the full class name of the EnjinMinecraftPlugin class