Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blackoutburst/thrones

Lightweight logger api
https://github.com/blackoutburst/thrones

Last synced: 3 days ago
JSON representation

Lightweight logger api

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
`