mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-11-22 08:13:20 +00:00
[CLIENT] #6.A : Ajout d'un appender de logs vers un fichier "./pqt_logs/client.log"
This commit is contained in:
parent
7f0dc93890
commit
d59fa8a393
@ -1,9 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Configuration status="WARN">
|
<Configuration status="WARN">
|
||||||
|
<Properties>
|
||||||
|
<Property name="filename">pqt_logs/client.log</Property>
|
||||||
|
</Properties>
|
||||||
|
|
||||||
<Appenders>
|
<Appenders>
|
||||||
<Console name="Console" target="SYSTEM_OUT">
|
<Console name="Console" target="SYSTEM_OUT">
|
||||||
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
|
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
|
||||||
</Console>
|
</Console>
|
||||||
|
<File name="File" fileName="${filename}">
|
||||||
|
<PatternLayout>
|
||||||
|
<pattern>%d %p %C{1.} [%t] %m%n</pattern>
|
||||||
|
</PatternLayout>
|
||||||
|
</File>
|
||||||
</Appenders>
|
</Appenders>
|
||||||
<Loggers>
|
<Loggers>
|
||||||
<Root level="trace">
|
<Root level="trace">
|
||||||
@ -12,5 +21,8 @@
|
|||||||
<Logger name="com.pqt.client" level="trace" additivity="false">
|
<Logger name="com.pqt.client" level="trace" additivity="false">
|
||||||
<AppenderRef ref="Console"/>
|
<AppenderRef ref="Console"/>
|
||||||
</Logger>
|
</Logger>
|
||||||
|
<Logger name="com.pqt.client" level="trace" additivity="false">
|
||||||
|
<AppenderRef ref="File"/>
|
||||||
|
</Logger>
|
||||||
</Loggers>
|
</Loggers>
|
||||||
</Configuration>
|
</Configuration>
|
Loading…
Reference in New Issue
Block a user