opt-nc / opt-logging

La librairie de référence pour générer des logs bien formatées à l'OPT.
0 stars 1 forks source link

fix: bump logstash-logback-encoder from 7.0.1 to 7.1 #109

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps logstash-logback-encoder from 7.0.1 to 7.1.

Release notes

Sourced from logstash-logback-encoder's releases.

logstash-logback-encoder-7.1

Bug Fixes

  • #747/#748 Logger name shortening down to the class name (length set to zero). (@​brenuart)

    When using a LogstashEncoder, the <shortenedLoggerNameLength> configuration property can be used to shorten the logger name as described in here. This feature is supposed to behave the same as the standard Logback length conversion word. However, although the logger name was properly shortened when the desired length was greater than zero, it did not produce the expected result when the length was set to 0. In fact, foo.bar.baz.MyClass was shortened to f.b.b.MyClass instead of MyClass.

  • #765 PatternJsonProvider: omitEmptyFields doesn't work with %property{key}. (@​brenuart)

    The Logback %property{key} conversion specifier returns null when the property does not exists. This value is added as-is to the String evaluation of the pattern which ultimately gives the string "null" (in letters) that won't be filtered out by the omitEmptyField feature. To solve this issue, the PatternJsonProvider now uses a custom %property{key} converter that returns an empty string instead of null when the property does not exist. It also allows you to specify a default value to use when the property does not exist. People wanting to revert to the old behaviour can explicitly set the default value to "null" like this %property{key:-null}.

  • #751 Fixed wrong link in README.md for #event-specific-custom-fields (@​mightymoogle)

Enhancements

  • #711 Fast Timestamp Format (@​brenuart)

    The *FormattedTimestampJsonProvider are now faster than ever thanks to the introduction of a new FastISOTimestampFormat.

    This new formatter leverages the fact that in a logging scenario timestamps are mostly formatted in chronological order. Instead of computing every date/time fields like the standard DateTimeFormatter does each time it is invoked, the fast formatter remembers the previous formatted value and replaces the second and millis parts when the next timestamp to format is within the same minute. This strategy is 7x faster and produces 10x less garbage compared to the DateTimeFormatter.

    The "fast" formatter is used only when the provider is configured with one of the following standard ISO formats (obtained from the Java DateTimeFormatter). A standard DateTimeFormatter is used for the other standard formats or if a custom pattern is configured (even if the pattern matches one of the supported ISO formats).

    • ISO_OFFSET_DATE_TIME
    • ISO_ZONED_DATE_TIME
    • ISO_LOCAL_DATE_TIME
    • ISO_DATE_TIME
    • ISO_INSTANT
  • #772 PatternJsonProvider: support for default value in %property{key} (@​brenuart)

    The %property{key} conversion specifier used by the PatternJsonProvider has been enhanced to add support for a default value to use when the property does not exist. The default value is optional and can be specified using the :- operator as in Bash shell. For example, assuming the property "foo" is not defined, %property{foo:-bar} will return bar. If no optional value is declared, the converter returns an empty string instead of null as does the original Logback version. Check the relevant section of the documentation for more information.

  • #743 Add new JsonProviders for exception messages (@​twz123)

  • #773/#774 PatternJsonProvider: provide a "#asNullIfEmpty{}" operation (@​brenuart)

  • #719/#720 getFieldValue() should return fieldValue without transforming it into a String (@​brenuart)

  • #728 Custom JsonGenerator with optimized writeObject() for simple object types (@​brenuart)

Project Improvements

Dependency version changes

Usage Dependency Old Version New Version
Runtime jackson 2.13.0 2.13.2.20220328

... (truncated)

Commits
  • 440f383 [maven-release-plugin] prepare release logstash-logback-encoder-7.1
  • eb692bd [release]
  • 21c1177 Fix cron string for no-response bot
  • 5c04ee7 Fixes #709 Replace probot/no-response bot with lee-dohm/no-response action
  • 526c878 Bump jacoco-maven-plugin from 0.8.7 to 0.8.8 (#787)
  • 2777094 Update license header template to match year 2022 (#766) (#786)
  • b6a3cb6 773 PatternJsonProvider: provide a "asNullIfEmpty{...}" operation (#774)
  • 98168b7 Bump maven-clean-plugin from 3.1.0 to 3.2.0 (#785)
  • cbe4515 Merge pull request #780 from logfellow/dependabot/maven/org.apache.maven.plug...
  • d3c1102 Merge pull request #781 from logfellow/dependabot/maven/com.fasterxml.jackson...
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Superseded by #110.