Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kokuwaio/micronaut-logging
Logging support for Micronaut
https://github.com/kokuwaio/micronaut-logging
logback logging mdc micronaut
Last synced: 2 days ago
JSON representation
Logging support for Micronaut
- Host: GitHub
- URL: https://github.com/kokuwaio/micronaut-logging
- Owner: kokuwaio
- License: apache-2.0
- Created: 2020-08-05T19:36:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-10T20:33:26.000Z (about 1 month ago)
- Last Synced: 2025-01-10T21:33:18.667Z (about 1 month ago)
- Topics: logback, logging, mdc, micronaut
- Language: Java
- Homepage:
- Size: 262 KB
- Stars: 7
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Micronaut Logging support
[![Apache License 2.0](https://img.shields.io/github/license/kokuwaio/micronaut-logging)](https://github.com/kokuwaio/micronaut-logging/blob/main/LICENSE)
[![Maven Central](https://img.shields.io/maven-central/v/io.kokuwa.micronaut/micronaut-logging)](https://central.sonatype.com/namespace/io.kokuwa.micronaut)
[![Build](https://img.shields.io/github/actions/workflow/status/kokuwaio/micronaut-logging/build.yaml?branch=main)](https://github.com/kokuwaio/micronaut-logging/actions/workflows/build.yaml?query=branch%3Amain)Include in your `pom.xml`:
```xml
io.kokuwa.micronaut
micronaut-logging
${version.io.kokuwa.micronaut.logging}
runtime
io.micronaut.serde
micronaut-serde-jsonp
runtime```
## Features
* Version [3.x](https://github.com/kokuwaio/micronaut-logging/tree/3.x) is based on SLF4J 1.7 & Logback 1.2 & Micronaut 3.x
* Version [4.x](https://github.com/kokuwaio/micronaut-logging/tree/main) is based on SLF4J 2.0 & Logback 1.4 & Micronaut 4.x
* [set log level based on MDC values](docs/features/logback_mdc_level.md)
* [add default xml](docs/features/logback_default.md)
* [preconfigured appender for different environments](docs/features/logback_appender.md)
* [set log level based on HTTP request header](docs/features/http_log_level.md)
* [add HTTP path parts to MDC](docs/features/http_mdc_path.md)
* [add HTTP header to MDC](docs/features/http_mdc_header.md)
* [add authentication information from HTTP request to MDC](docs/features/http_mdc_authentication.md)## Open Topics
* configure mdc on refresh event
* read **serviceName** and **serviceVersion** from yaml
* support auto select appender with custom `logback.xml`