<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
  <Appenders>
    <Console name="Console">
      <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
    </Console>
 	<RollingFile name="RollingFile" fileName="${env:APPDATA}/GardenNotebook/logs/GardenNotebook.log"
		filePattern="${env:APPDATA}/GardenNotebook/logs/$${date:yyyy-MM}/GardenNotebook-%d{yyyy-MM-dd}-%i.log">
<!--        <RollingFile name="RollingFile" fileName="logs/GardenNotebook.log"
		filePattern="logs/$${date:yyyy-MM}/GardenNotebook-%d{yyyy-MM-dd}-%i.log">   -->
            <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
            <Policies>
              <OnStartupTriggeringPolicy />
            </Policies>
            <DefaultRolloverStrategy max="3" />
  	</RollingFile>
  </Appenders>
  <Loggers>
    <Root level="trace">
      <AppenderRef ref="Console"/>
      <AppenderRef ref="RollingFile"/>
    </Root>
  </Loggers>
</Configuration>