Usage Example
Usage Example
To create a log file and start saving logs, include the following code in your plugin:
This will create a log file named MyPlugin-log.log
in the HTGLoggers data folder and log a startup message.
Log Levels
You can use different logging levels to categorize your logs:
INFO: General information logs.
WARNING: Warnings about potential issues.
ERROR: Errors that need immediate attention.
Example:
Last updated