﻿<?xml version="1.0" encoding="utf-8"?>

<configuration>

  <configSections>
    <section name="LogConfiguration" type="Sonova.Core.Logging.Config.LogConfigurationSection,Sonova.Core.Logging" />
  </configSections>
      
  <LogConfiguration LoggingEnabled="true" DefaultLogWriterSet="DefaultWriterSet" DefaultLogServiceSeverity="Debug" MinimalGlobalSeverity="Fatal">
    <LogServices>
      <!--
      The attribute Name can be any regular expression. The first match of this list has priority.
      Please keep in mind, that the dot . means a single character in regular expressions. Therefore 
      use [.] to specify a real dot.
    -->
    </LogServices>
    <LogWriterSets>
      <LogWriterSet Name="DefaultWriterSet">
        <Assignments>
          <LogWriterAssignment LogWriter="GeneralFileLogWriter" Severity="Debug" />
          <LogWriterAssignment LogWriter="TraceLogWriter" Severity="Debug" />
        </Assignments>
      </LogWriterSet>
    </LogWriterSets>

    <LogWriters>
      <FileLogWriter Name="GeneralFileLogWriter" FileName="general.log" MaxFileLength="30000000" />
      <TraceLogWriter Name="TraceLogWriter" AutoFlush="true" />
    </LogWriters>
  </LogConfiguration>

</configuration>