Skip to content
Snippets Groups Projects
Commit b23bad84 authored by Gaelle.Barris's avatar Gaelle.Barris
Browse files

use log json format for container

parent e4265130
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@
</parent>
<groupId>fr.gouv.siig.descartes</groupId>
<artifactId>jobrun</artifactId>
<version>0.0.3</version>
<version>0.0.4</version>
<packaging>jar</packaging>
<name>Descartes - Module D-JobRunMap</name>
<description>JobRun de Descartes</description>
......@@ -79,6 +79,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-layout-template-json</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
......
......@@ -8,7 +8,10 @@
</Properties>
<Appenders>
<Console name="Console" target="SYSTEM_OUT" follow="true">
<PatternLayout pattern="${LOG_PATTERN}" />
<!-- <PatternLayout pattern="${LOG_PATTERN}" />-->
<JsonLayout complete="true" compact="true" eventEol="true" includeStacktrace="true" objectMessageAsJsonObject="true" >
<KeyValuePair key="timeMillis" value="$${date:yyyy-MM-dd'T'HH:mm:ss.SSSZ}" />
</JsonLayout>
</Console>
<RollingFile name="rollingLog"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment