Tags
Creators
Details
2.1.0.0-release
Compatibility
Changes
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
initializemethod in theHTGLoggersAPIclass to allow other plugins to utilize logging features.
- Introduced a new
-
Log File Creation:
- Added the
createLogFilemethod for automatic log file creation for specified plugins.
- Added the
-
File Logging:
- Introduced a new
logToFilemethod 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.
Supplementary resources
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:qpx0uAhr:WbXiBBrN"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:qpx0uAhr:WbXiBBrN"
}

