<configuration>
   <system.web>

      <healthMonitoring heartbeatInterval="0" enabled="true">
         <bufferModes>
            <add name="Website Error Notification"
             maxBufferSize="100"
             maxFlushSize="20"
             urgentFlushThreshold="1"
             regularFlushInterval="Infinite"
             urgentFlushInterval="00:01:00"
             maxBufferThreads="1" />
         </bufferModes>
         <providers>
            <clear />
            <add name="EventLogProvider"  
             type="System.Web.Management.EventLogWebEventProvider,System.Web,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" />
            <add name="SimpleMailProvider"
             type="System.Web.Management.SimpleMailWebEventProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
             from="website@company.com"
             to="admin@company.com" 
             cc="adminLevel2@company.com
             bcc="director@company.com"
             bodyHeader="Ostrzeżenie!"
             bodyFooter="Do zbadania tak szybko, jak to możliwe."
             subjectPrefix="Konieczne jest podjęcie działań."
             buffer="true"
             bufferMode="Website Error Notification"
             maxEventLength="4096"
             maxMessagesPerNotification="1" />
         </providers>
         <profiles>
            <!-- Usunięte w celu zwiększenia przejrzystości -->
         </profiles>
         <rules>
            <add name="All Errors Default" eventName="All Errors" 
             provider="EventLogProvider" profile="Default" minInstances="1" 
             maxLimit="Infinite" minInterval="00:01:00" custom="" />
            <add name="Failure Audits Default" eventName="Failure Audits" 
             provider="EventLogProvider" profile="Default" minInstances="1" 
             maxLimit="Infinite" minInterval="00:01:00" custom="" />
            <add name="All Errors Simple Mail" eventName="All Errors" 
             provider="SimpleMailProvider" profile="Default" />
            <add name="Failure Audits Default" eventName="Failure Audits" 
             provider="SimpleMailProvider" profile="Default" />
         </rules>
         <eventMappings>
            <!-- Usunięte w celu zwiększenia przejrzystości -->
         </eventMappings>
      </healthMonitoring>

   </system.web>
</configuration>
