Skip to content

Releases: dm-drogeriemarkt/log-capture

4.1.0 - times(...), atMost(...), atLeast(...) and once()

03 Feb 14:08
f281b75
Compare
Choose a tag to compare
  • Feature: Added method to test number of log message repetitions via times(...), once(), atMost(...) and atLeast(...) (thanks @Laksuh)
  • Improvement: Better readability of assertion messages

Example

assertion message before:

Expected log message has occurred, but never with the expected MDC value: Level: WARN, Regex: "bye world"
captured message: "bye world"
expected MDC key: another_key
expected MDC value: ".*another_value.*"
captured MDC values:"
  key: "value"

assertion message now:

Expected log message has occurred, but never with the expected MDC value:
message: WARN "bye world" (regex)
  captured message: "bye world"
  expected MDC key: another_key
  expected MDC value: ".*another_value.*"
  captured MDC values:
    key: "value"

4.0.1 - Dependency updates

10 Jan 14:22
Compare
Choose a tag to compare

Updated dependencies due to logback vulnerability

4.0.0 - new key-value matcher and some breaking changes

27 Nov 08:16
09bbe0d
Compare
Choose a tag to compare
  • breaking change: log-capture now requires Java 17
  • breaking change: all deprecated parts have been removed
  • added a new log event matcher for key-value content
  • lots of dependency updates

3.6.2 - fix assertion message

24 Nov 13:01
17724cd
Compare
Choose a tag to compare

Fixes an assertion message concerning captured Exceptions.

Correct message of assertion

03 Feb 14:28
4683ddf
Compare
Choose a tag to compare
  • BUGFIX Fixed a misleading and wrong assertion message. The assertion itself was correct, but the message always said all matchers did not match when only a subset did not match.

Remove ExpectedKeyValue

26 Sep 13:47
01eebbe
Compare
Choose a tag to compare

Removed ExpectedKeyValue again due to an API change in Logstash without a workaround

Assertions for StructuredArguments.keyValue

04 Apr 10:22
1f18f62
Compare
Choose a tag to compare
  • Added new Log Event Matcher: ExpectedKeyValue.keyValue(...) to assert StructuredArguments.keyValue(...) from Logstash
  • Improved readability for assertion errors when using assertNotLogged(...)
  • Updated dependencies

3.4.1 - Improved Javadoc for deprecated methods

28 Feb 11:33
68c7e42
Compare
Choose a tag to compare

Improved Javadoc for deprecated methods

3.4.0 - assertNotLogged() and other conveniences

25 Feb 15:23
Compare
Choose a tag to compare
  • Added assertNotLogged(...) for asserting that no matching log message has been logged
  • Added more factory methods for warn(...), error(...) as a shortcut to ignore the message when matching
  • Added any(...) factory method for matching any log message regardless of level

3.3.0 with new fluent API and more assertions

14 Feb 13:16
Compare
Choose a tag to compare
  • Introduced a new fluent API with
    • better readability
    • extensible log message assertions (to assert attached Exceptions, Markers and LoggerName beyond MDC content)
  • Deprecated the old API (will be removed in 4.0)