Removed Features
- API V2: The functionality for displaying the plugin in the list of supported plugins on the GUI has been removed.
HTGLoggers - Version 2.1.2.0-release
Additions:
- Added version update checking using a version.json file hosted on GitHub.
- Support for automatic update checking to verify if the plugin is up-to-date via the version.json file.
Fixes:
- Improved stability of default plugin features, fixed exception handling, and enhanced log messages.
Upgrades:
- Enhanced console logs with more readable...
Version 2.1.1.0-release Summary
New Features and Changes:
- Version Check: Implementation of a feature to check whether a new version of the plugin is available.
Repairs:
- Default Functions Fixed: Resolved issues with the default functions of the plugin.
Upgrades:
- Console Log Upgrade: Improved styling of console logs to enhance readability.
Update Description for HTGLoggers 2.1.0.0
Version: 2.1.0.0
Release Date: 21.09.2024
What’s New:
-
API Initialization:
- Introduced a new
initialize
method in theHTGLoggersAPI
class to allow other plugins to utilize logging features.
- Introduced a new
-
Log File Creation:
- Added the
createLogFile
method for automatic log file creation for specified plugins.
- Added the
-
File Logging:
- Introduced a new
logToFile
method that allows logging messages to a log file in append mode.
- Introduced a new
-
Usage Examples:
- Included code examples for API initialization and logging messages to files in the documentation.
Fixes:
-
API Initialization Errors:
- Improved the initialization mechanism to prevent conflicts and incorrect logging, especially with incompatible plugin versions.
-
Error Logging:
- Enhanced error messages for failed log file creation attempts.
Removed:
- Old Logging Methods:
- Deprecated logging methods have been removed to streamline the API and improve readability.
Upcoming:
- An update to the wiki documentation will be released soon, providing detailed information on the new features and usage guidelines. Wikipedia
Note: Ensure you are using version 2.1.0.0 or higher to take full advantage of the new API and logging features.
Update Code
Spoiler
not required
Changelog for version 2.0.4
Fixed:
-
API Initialization:
- Added additional validation during API initialization.
HTGLoggersAPI
now checks if it has already been initialized and throws anIllegalStateException
in case of a reinitialization attempt. Instead of a warning logged in the console, improper reinitialization now results in an exception.
- Added additional validation during API initialization.
-
Handling Empty Plugin Names:
- Fixed an issue where empty or null plugin names could be passed to the
createLogFile
method. The method now validates thepluginName
parameter and logs an error if the name is invalid.
- Fixed an issue where empty or null plugin names could be passed to the
Added:
-
Enhanced Exception Handling:
- Implemented detailed exception handling when creating log files. Any errors related to folder or file creation are now logged at the
SEVERE
level, including the full stack trace.
- Implemented detailed exception handling when creating log files. Any errors related to folder or file creation are now logged at the
-
Expanded Parameter Validation:
- Added validation for the plugin name in the
createLogFile
method. The method now checks if the plugin name is neither empty nor null before attempting to create a log file.
- Added validation for the plugin name in the
Removed:
- Unnecessary API Reinitialization Warning:
- Removed the logic that warned about API reinitialization and replaced it with an exception. This prevents potential errors in the future.
Pom.xml Update
Spoiler
not required