[CLIENT] #6.A : Ajout d'un appender de logs vers un fichier "./pqt_logs/client.log"

This commit is contained in:
Notmoo-PC\Notmoo 2018-01-25 20:11:10 +01:00
parent 7f0dc93890
commit d59fa8a393

View File

@ -1,9 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Properties>
<Property name="filename">pqt_logs/client.log</Property>
</Properties>
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
<File name="File" fileName="${filename}">
<PatternLayout>
<pattern>%d %p %C{1.} [%t] %m%n</pattern>
</PatternLayout>
</File>
</Appenders>
<Loggers>
<Root level="trace">
@ -12,5 +21,8 @@
<Logger name="com.pqt.client" level="trace" additivity="false">
<AppenderRef ref="Console"/>
</Logger>
<Logger name="com.pqt.client" level="trace" additivity="false">
<AppenderRef ref="File"/>
</Logger>
</Loggers>
</Configuration>