Skip to content

LogstashBasicMarker implementation is inefficient and out-off-sync with implementation provided by Slf4J #613

@brenuart

Description

@brenuart

LogstashBasicMarker is a now obsolete copy of org.slf4j.helpers.BasicMarker at version 1.7.12
The original implementation has been updated and improved since then. The version included in logback-logstash-encoder should be updated accordingly.

A few points:

  • replace the use of Vector by a more efficient List implementation
  • use a StringBuilder instead of a StringBuffer

Note: Slf4J BasicMarker has a package protected constructor and cannot be easily re-used in other project - reason why the project maintains its own copy.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions