<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright 2018 Scytl Secure Electronic Voting SA

    All rights reserved

    See our extended copyright notice in *file 'Copyright.txt' which is part of this source code package

-->
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
	<root>
		<level value="INFO" />
		<appender-ref ref="console" />
	</root>

	<appender name="console" class="org.apache.log4j.ConsoleAppender">
		<layout class="com.scytl.products.oscore.logging.core.layout.EscapingPatternLayout">
			<param name="ConversionPattern" value="%d{ISO8601} %-5p %c{1}:%L - %m%n" />
		</layout>
	</appender>

    <!--Secure logger -->
    <logger name="test-secure-logger" additivity="false">
        <level value="INFO"/>
        <appender-ref ref="secure-appender"/>
    </logger>

    <appender name="secure-appender" class="com.scytl.slogger.SecureAppender">
        <param name="file" value="target/extended_authentication_test_secure.log"/>
        <param name="pattern" value="%d{ISO8601}|%p|%t|%m%n"/>
        <param name="verifyPattern" value="TIMESTAMP|LEVEL|THREAD|MESSAGE"/>
        <param name="numberLogLines" value="10000"/>
        <param name="timerLogMilliseconds" value="300000"/>
        <param name="triggeringTime" value="3600000"/>
        <param name="encoding" value="UTF-8"/>
        <param name="logFileNamePolicyName" value="SINGLE_FILENAME"/>
        <param name="signaturePkcs12FileName" value="signatureKeyStore.p12"/>
        <param name="signaturePkcs12Password" value="GXXCNJH48X5F649VRY52"/>
        <param name="cipherPkcs12FileName" value="cipherKeyStore.p12"/>
        <param name="cipherPkcs12Password" value="649VRY52GXXCNJH48X5F"/>
    </appender>

</log4j:configuration>
