Skip to content

Commit

Permalink
fix example in README (used old, deprecated API)
Browse files Browse the repository at this point in the history
  • Loading branch information
cleaning-agent authored Jan 13, 2023
1 parent 34005a9 commit eb7245d
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 @@ -91,7 +91,7 @@ import static de.dm.infrastructure.logcapture.ExpectedMdcEntry.mdc;
MDC.put("key", "value");
log.info("did something");

logCapture.info("did something", mdc("key", "value"));`
logCapture.assertLogged(info("did something", mdc("key", "value")));`
```

#### Exceptions
Expand Down Expand Up @@ -126,7 +126,7 @@ import static de.dm.infrastructure.logcapture.ExpectedMarker.marker;

log.info(MarkerFactory.getMarker("my-marker"), "hello with marker");

logCapture.info("hello with marker", marker("my-marker"));
logCapture.assertLogged(info("hello with marker", marker("my-marker")));
```

#### Logger name
Expand All @@ -138,7 +138,7 @@ import static de.dm.infrastructure.logcapture.ExpectedLoggerName.logger;

log.info("did something");

logCapture.info("did something", logger("com.acme.foo"));
logCapture.assertLogged(info("did something", logger("com.acme.foo")));
```

### Examples
Expand Down

0 comments on commit eb7245d

Please sign in to comment.