Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blackoutburst/thrones
Lightweight logger api
https://github.com/blackoutburst/thrones
Last synced: 3 days ago
JSON representation
Lightweight logger api
- Host: GitHub
- URL: https://github.com/blackoutburst/thrones
- Owner: Blackoutburst
- License: unlicense
- Created: 2023-12-24T14:26:45.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-08T15:34:24.000Z (9 months ago)
- Last Synced: 2024-02-08T16:57:16.641Z (9 months ago)
- Language: Kotlin
- Size: 734 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Thrones
[![Release](https://img.shields.io/github/release/Blackoutburst/Thrones.svg?style=for-the-badge)](https://github.com/Blackoutburst/Thrones/releases)
![Size](https://img.shields.io/github/repo-size/Blackoutburst/Thrones?style=for-the-badge)
[](https://plugins.blackoutburst.dev/dev/blackoutburst/thrones/1.1.2/index.html)Lightweight logger api
## Install
```gradle
repositories {
maven {
url = uri("https://plugins.blackoutburst.dev")
}
}dependencies {
implementation("dev.blackoutburst:thrones:1.1.2")
}
```## Usage
Code
```kotlin
Thrones.t("Trace")
Thrones.d("Debug")
Thrones.i("Info")
Thrones.w("Warn")
Thrones.e("Error")
```
Output
![./readme/log_output.png](./readme/log_output.png)## Configuration
This is the default configuration
```kotlin
Thrones.configuration = ThronesConfiguration(
level = ThronesLevel.INFO,
showTime = true,
showThread = true,
showClass = true,
showPackage = true,
showIndicator = true,
)
```### Level
- TRACE
- DEBUG
- INFO
- WARN
- ERROR### Format
`