Changelog
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.
Files
HTGLoggers-2.0.4-prelease.jar(18.62 KiB) Primary Download