Skip to content

Deprecate support for Logback Layout #638

Open
@brenuart

Description

@brenuart

Logback has deprecated the use of Layout in favour of Encoder. A LayoutWrappingEncoder adapter is provided to bridge between the two.

Logback OutputStreamAppender and sub-classes like ConsoleAppender still accept a Layout but wrap them with a LayoutWrappingEncoder and emit warnings saying:

This appender no longer admits a layout as a sub-component, set an encoder instead.
To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details.

The SyslogAppender however is still using a Layout but does not allow to set it by configuration.

Supporting Layout in logstash-logback-encoder is cumbersome and increase code complexity for little to no benefit. Proposition is to deprecate it for removal in the next major release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    warn/deprecationChanges about to deprecate feature/methods/fields

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions