As of build #1609, this behavior can be toggled in the spigot.yml config file with the setting "debug", which now defaults to false. In the future the debug logging behavior can be toggled from there without having to do any more runtime arguments to change it.
Contents
Background(top)
Since build #1578 Spigot logs all debug messages. But due to how some panels work, this may cause unneeded spam in your console and can make logs files bigger and harder to manually process. This guide will help you revert this change and allow you to revert back to default behaviour by just adding a start-up flag.Requirements(top)
- Ability to save files to the jar directory (or accessible by configuring a directory)
- The ability to change your start-up flags (or directly insert a file into the jar archive)
- The file found here saved as a .xml file
Method(top)
Same folder(top)
Once you have the above file saved as something (we will refer to it as log4j2.xml, substitute your name if you named it differently), upload it or place it in the same folder as your spigot.jar. Once this is done, you will need to add the following flag to your startup before you declare the jar file.- -Dlog4j.configurationFile=log4j2.xml
- java -Xmx1G -jar spigot.jar
- java -Dlog4j.configurationFile=log4j2.xml -Xmx1G -jar spigot.jar
Different folder(top)
If you cant access your jar folder, you can place it elsewhere if you know how to directly access it. For example, if you put it in your plugins folder you can access it by changing the start-up flag to- -Dlog4j.configurationFile=./plugins/log4j2.xml