From d8ec708e1639c47db9a5fa45e1cb3241cda13a2c Mon Sep 17 00:00:00 2001 From: Oleksandr Vidinieiev Date: Wed, 24 Jan 2024 15:09:32 +0200 Subject: [PATCH] MODTLR-10 Add logging configuration file --- src/main/resources/log4j2.properties | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/resources/log4j2.properties diff --git a/src/main/resources/log4j2.properties b/src/main/resources/log4j2.properties new file mode 100644 index 00000000..9ab6b776 --- /dev/null +++ b/src/main/resources/log4j2.properties @@ -0,0 +1,15 @@ +status = error +name = PropertiesConfig +packages = org.folio.spring.logging + +appenders = console + +appender.console.type = Console +appender.console.name = STDOUT + +appender.console.layout.type = PatternLayout +appender.console.layout.pattern = %d{HH:mm:ss} [$${folio:requestid:-}] [$${folio:tenantid:-}] [$${folio:userid:-}] [$${folio:moduleid:-}] %-5p %-20.20C{1} %m%n + +rootLogger.level = info +rootLogger.appenderRefs = info +rootLogger.appenderRef.stdout.ref = STDOUT \ No newline at end of file