IMPORTANT NOTE: Made for Paper 1.21.4, only tested on 1.21.4.
Context (skip if you want) I tried to find a plugin out there that would log all of my Console logs, or rather, specific types (I.E. debug, error etc) to a database which I could report on via a website, as I am not always watching the console. I could not find a plugin that did this. So I made one.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- What does this plugin do?
It logs:
Fatal
Error
Warn
Info
Debug
Trace
StackTraces
MDC
Threadname
etc
To a MYSQL database you define
Fully configurable. Don't want to log Debug? Turn it off. Shrimple.
Purges old logs after a time period you define, dropping them in an order you define, I.E. oldest, newest, etc.
Note:
No in game permissions
No in game commands
Plugin controlled entirely from the config.yml generated
Plugin starts DEFAULTED to DISABLED; turn it on in the config, configure your MySQL database, then reboot
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The Configuration is easy right? Yes!
Here is the config, and further below I will explain what they mean. 2 spoilers.
Code (Text):
enabled: true # MUST be set to true before the plugin activates
identify:
server_name: RANDOMNAME
server_uuid: b45aee08-c73e-43b8-bdf1-2f7d0487bb95 # auto-generate and save if blank
hostname: 23ad6bd8-4b1a-4c78-a168-95efa460c428 # auto-detect and save if blank
build_info: 'Paper 1.21.4-232-12d8fe0 (MC: 1.21.4)' # auto-detect Paper build if blank