Micronaut logging support
Bumps [checkstyle](https://github.com/checkstyle/checkstyle) from 10.10.0 to 10.11.0. - [Release notes](https://github.com/checkstyle/checkstyle/releases) - [Commits](https://github.com/checkstyle/checkstyle/compare/checkstyle-10.10.0...checkstyle-10.11.0) --- updated-dependencies: - dependency-name: com.puppycrawl.tools:checkstyle dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
.github | ||
docs/features | ||
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>
Or use in dependencyManagement
in pom.xml
:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.kokuwa.micronaut</groupId>
<artifactId>micronaut-logging</artifactId>
<version>${version.io.kokuwa.micronaut.logging}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-bom</artifactId>
<version>${version.io.micronaut}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
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 (WIP)
- 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
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