Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
waschmittel authored Dec 5, 2023
1 parent 4e85258 commit 9247a8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ If there are log messages that happen in the context of an order, you may want t
these log messages.

```java
try(var c = MdcContext.of(incomingOrder)){
mdc(incomingOrder, () -> {
log.info("A new order has come in.");

if(isValid(incomingOrder)){
prepareForDelivery(incomingOrder);
}
}
});
```

The `incomingOrder` will be attached to the log messages generated in this `try` block, including
Expand Down Expand Up @@ -145,7 +145,7 @@ If you use maven, add this to your pom.xml:
<dependency>
<groupId>de.dm.infrastructure</groupId>
<artifactId>structured-logging</artifactId>
<version>2.0.5</version>
<version>3.0.0</version>
</dependency>
```

Expand Down

0 comments on commit 9247a8b

Please sign in to comment.