package io.symphonia.lambda.logging;

import static io.symphonia.lambda.logging.DefaultConsoleAppender.NO_REQUEST_ID;

public class MetricsConsoleAppender extends LambdaConsoleAppender {

    @SuppressWarnings("WeakerAccess")
    public static String DEFAULT_METRICS_PATTERN =
            "[%d{yyyy-MM-dd HH:mm:ss.SSS}] %X{AWSRequestId:-" + NO_REQUEST_ID +
                    "} METRIC %logger{5} %replace(%msg){'[,= ]+', ' '}%n";

    public MetricsConsoleAppender() {
        super(DEFAULT_METRICS_PATTERN, new MetricPassFilter());
    }

}

@@ -424,10 +424,10 @@
 ' '%7D
-%25n
+%5Cr
 %22;%0A%0A

Change newline to carriage return in lambda-metrics pattern