Micronaut logging support
Bumps [maven-surefire-plugin](https://github.com/apache/maven-surefire) from 3.0.0-M7 to 3.0.0-M9. - [Release notes](https://github.com/apache/maven-surefire/releases) - [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.0.0-M7...surefire-3.0.0-M9) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-surefire-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.github | ||
docs | ||
src | ||
.markdownlint.yaml | ||
.yamllint | ||
LICENSE | ||
pom.xml | ||
README.md |
Micronaut Logging support
Include in your pom.xml
:
<dependency>
<groupId>io.kokuwa.micronaut</groupId>
<artifactId>micronaut-logging</artifactId>
<version>${version.io.kokuwa.micronaut.logging}</version>
<scope>runtime</scope>
</dependency>
Features
- Version 3.x is based on SLF4J 1.7 & Logback 1.2
- Version 4.x is based on SLF4J 2.0 & Logback 1.4* set log level based on MDC values
- set log level based on MDC values
- add default xml
- preconfigured appender for different environments
- set log level based on HTTP request header
- add HTTP path parts to MDC
- add HTTP header to MDC
- add authentication information from HTTP request to MDC
Development
Open Topics
- configure mdc on refresh event
- read serviceName and serviceVersion from yaml
- support auto select appender with custom
logback.xml
- add maven site with jacoco / dependency updates for snapshot build