Skip to content

Commit d8520e9

Browse files
committed
Release v0.4.0
1 parent be7c015 commit d8520e9

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ below). This allows you to filter and query on the field in the log analysis too
6161
a more structured manner than if you were to just use string concatenation.
6262

6363
<!-- prettier-ignore -->
64+
6465
```jsonc
6566
{
6667
"message": "Processing event",
@@ -98,7 +99,8 @@ Note that `withLoggingContext` uses a thread-local
9899
([SLF4J's `MDC`](https://logback.qos.ch/manual/mdc.html)) to provide log fields to the scope, so it
99100
won't work with Kotlin coroutines and `suspend` functions. If you use coroutines, you can solve this
100101
with
101-
[`MDCContext` from `kotlinx-coroutines-slf4j`](https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-slf4j/kotlinx.coroutines.slf4j/-m-d-c-context/).
102+
[`MDCContext` from
103+
`kotlinx-coroutines-slf4j`](https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-slf4j/kotlinx.coroutines.slf4j/-m-d-c-context/).
102104

103105
Lastly, you can attach a cause exception to the log like this:
104106

@@ -124,7 +126,7 @@ To set up `devlog-kotlin` with Logback and JSON output, add the following depend
124126
```kotlin
125127
dependencies {
126128
// Logger API
127-
implementation("dev.hermannm:devlog-kotlin:0.3.0")
129+
implementation("dev.hermannm:devlog-kotlin:0.4.0")
128130
// Logger implementation
129131
implementation("ch.qos.logback:logback-classic:1.5.15")
130132
// JSON encoding of logs
@@ -138,7 +140,7 @@ To set up `devlog-kotlin` with Logback and JSON output, add the following depend
138140
<dependency>
139141
<groupId>dev.hermannm</groupId>
140142
<artifactId>devlog-kotlin</artifactId>
141-
<version>0.3.0</version>
143+
<version>0.4.0</version>
142144
</dependency>
143145
<!-- Logger implementation -->
144146
<dependency>
@@ -176,7 +178,8 @@ Then, configure Logback with a `logback.xml` file under `src/main/resources`:
176178
For more configuration options, see:
177179

178180
- [The Configuration chapter of the Logback manual](https://logback.qos.ch/manual/configuration.html)
179-
- [The Usage docs of `logstash-logback-encoder`](https://github.com/logfellow/logstash-logback-encoder#usage)
181+
- [The Usage docs of
182+
`logstash-logback-encoder`](https://github.com/logfellow/logstash-logback-encoder#usage)
180183
(the library to use for JSON encoding of logs)
181184

182185
## Implementation

integration-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<kotlin.version>2.1.20</kotlin.version>
2525

2626
<!-- Logging -->
27-
<devlog-kotlin.version>0.3.0-SNAPSHOT</devlog-kotlin.version>
27+
<devlog-kotlin.version>0.4.0-SNAPSHOT</devlog-kotlin.version>
2828
<slf4j.version>2.0.17</slf4j.version>
2929

3030
<!-- Serialization -->

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>dev.hermannm</groupId>
77
<artifactId>devlog-kotlin</artifactId>
8-
<version>0.3.0</version>
8+
<version>0.4.0</version>
99
<packaging>jar</packaging>
1010

1111
<name>devlog-kotlin</name>

0 commit comments

Comments
 (0)