From c85b3e20bf3a85af5965ed84c57ae68040aadf42 Mon Sep 17 00:00:00 2001 From: Tarun Chauhan Date: Sat, 15 Apr 2023 00:42:38 +0530 Subject: [PATCH] add crlf in LoggerOptions --- pino.d.ts | 5 +++++ test/types/pino.test-d.ts | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/pino.d.ts b/pino.d.ts index 285c4b3b2..367cdd870 100644 --- a/pino.d.ts +++ b/pino.d.ts @@ -629,6 +629,11 @@ declare namespace pino { * Optional child creation callback. */ onChild?: OnChildCallback; + + /** + * logs newline delimited JSON with `\r\n` instead of `\n`. Default: `false`. + */ + crlf?: boolean; } interface ChildLoggerOptions { diff --git a/test/types/pino.test-d.ts b/test/types/pino.test-d.ts index 9d4189200..dbfd0852d 100644 --- a/test/types/pino.test-d.ts +++ b/test/types/pino.test-d.ts @@ -325,3 +325,7 @@ const withChildCallback = pino({ }) withChildCallback.onChild = (child: Logger) => {} +pino({ + crlf: true, +}); +