This module holds utilities used in other libraries of the toolkit. Check the packages' documentation for more details. You can find a quick recap of the main features in the sections below.
This module is not meant to be imported directly. It will be included by using any other part of the toolkit. However, if you only want to use the utilities, logging, etc. (i.e., for a desktop application), you can import it with the following code:
=== "build.gradle"
```groovy
repositories {
mavenCentral()
}
implementation("com.hexagonkt:core:$hexagonVersion")
```
=== "pom.xml"
```xml
<dependency>
<groupId>com.hexagonkt</groupId>
<artifactId>core</artifactId>
<version>$hexagonVersion</version>
</dependency>
```
JVM information and other useful utilities. Includes basic program settings support at the Jvm object (like loading and retrieving system settings).
Provides a logging management capabilities abstracting the application from logging libraries.
The following code block shows the most common use cases for the Logger class:
@code core/src/test/kotlin/com/hexagonkt/core/logging/LoggerTest.kt?logger
By default, Hexagon uses the System.Logger class.
Media types definitions and constants for default media types.
Cryptography and key stores utilities.
Text utilities to allow the use of ANSI escape codes and case converting tools among other features.