-
Notifications
You must be signed in to change notification settings - Fork 0
Logger
Larrox edited this page Aug 29, 2025
·
1 revision
The Logger class in LarroxUtilsAPI is a simple utility for sending formatted log messages to the server console.
It provides methods to log info, warnings, and errors with a consistent [LarroxUtilsAPI] prefix, making your plugin output more organized and easy to read.
Note
Don’t forget to import:
import dev.larrox.Logger;- Log informational messages.
- Log warnings to indicate potential issues.
- Log errors for severe problems.
- Automatically prepends
[LarroxUtilsAPI]to all messages for clarity.
Logger.info("Plugin has been enabled!");Logger.warn("This feature is deprecated!");Logger.error("Something went wrong while loading the configuration!");- Use
Logger.info()for general plugin events and messages. - Use
Logger.warn()for issues that don’t stop the plugin but might need attention. - Use
Logger.error()for serious problems that may break functionality. - Always include descriptive messages to make debugging easier.