From a80fd4af062943eab90a06d5fa2ace1f53ae41ae Mon Sep 17 00:00:00 2001 From: Mattia Bertorello Date: Tue, 23 Jul 2019 11:48:47 +0200 Subject: [PATCH] Add line number to the logs (%L) https://logging.apache.org/log4j/2.x/manual/layouts.html --- app/src/log4j2.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/log4j2.xml b/app/src/log4j2.xml index 67338ab8a09..fe7202640c5 100644 --- a/app/src/log4j2.xml +++ b/app/src/log4j2.xml @@ -4,7 +4,7 @@ - + @@ -12,7 +12,7 @@ filePattern="${sys:log4j.saveDirectory}/logs/application-%d{MM-dd-yyyy}-%i.log.gz" ignoreExceptions="false"> - %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}{UTC} %p %c{1.} [%t] %m%n + %d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}{UTC} %p %c{1.}:%L [%t] %m%n