ajout des fichiers properties
This commit is contained in:
23
properties/log4j2-portail.xml
Executable file
23
properties/log4j2-portail.xml
Executable file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<Configuration status="info">
|
||||
|
||||
<Properties>
|
||||
<Property name="file-name">/opt/tomcat/app-log/portail.log</Property>
|
||||
</Properties>
|
||||
<Appenders>
|
||||
<RollingFile name="RollingFile" fileName="${file-name}" filePattern="${file-name}.%d{yyyy-MM-dd}">
|
||||
<PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %logger{10} - %X{user}:%X{idUtilisateur}:%X{idEntreprise}:%X{fishTag} - %msg%n" />
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy />
|
||||
</Policies>
|
||||
<DefaultRolloverStrategy max="30" />
|
||||
</RollingFile>
|
||||
</Appenders>
|
||||
<Loggers>
|
||||
<Logger name="fr" level="debug" additivity="false">
|
||||
<AppenderRef ref="RollingFile" />
|
||||
</Logger>
|
||||
<Root level="info"> <AppenderRef ref="RollingFile" />
|
||||
</Root>
|
||||
</Loggers>
|
||||
</Configuration>
|
||||
Reference in New Issue
Block a user