Skip to content

Making SingleFieldAppendingMarker#getFieldValue() package-private broke log assertions #788

@waschmittel

Description

@waschmittel

Description

I am maintaining https://github.com/dm-drogeriemarkt/log-capture/ which we use to test our logging.

I also allows to assert logging of keyValue, see https://github.com/dm-drogeriemarkt/log-capture/#key-value-from-logstash

Making SingleFieldAppendingMarker#getFieldValue() package-private broke that for me, because I used it for those assertions. I don't see a viable replacement, although I might be overlooking something.

Expected behavior

I am aware that is kind of a https://xkcd.com/1172/ situation ;-), but I would like a way to be still able to use those assertions. If everything else fails, I can mis-use toStringSelf() and filter out the key, but I'd rather not do that.

  • logstash-logback-encoder 7.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/waiting-for-feedbackWaiting for feedback from the original author. Issue will be closed if feedback is not received soon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions