Skip to content

Incorrectly encoded logger output #1062

@cezarypiatekGC

Description

@cezarypiatekGC

Describe the bug

The Wiremock console logger does not encode newline characters in the output. This causes problems with the log shipping mechanisms.

Expected behaviour:

I am using the WireMock.Net docker image to test my services within the K8s cluster. Because the output is formatted incorrectly, the log shipping mechanism treats each line as a separate log entry, resulting in a huge amount of log entries that are completely corrupted.

Below is the output from the Rancher console. As you can see, each line of formatted json is treated as a separate log entry:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions