Like in the title, is there a way to get a logger without my plugin name?
[12:49:11] [Server thread/INFO] [PluginName]: My message here
Like in the title, is there a way to get a logger without my plugin name?
[12:49:11] [Server thread/INFO] [PluginName]: My message here
You could theoretically send a message to the console (not a real logger though): Sponge.getServer().getConsole().sendMessage(Text.of("Hello"));
Anyway, why would you want to do that?
I’m currently developing a plugin to allow the developers to create plugins in javascript and I wanted to give them their own logger with their plugin name.
Have a look at this, it’s the method I use to get a logger in my plugin framework.
Thank you, I’ll look tonight.