<?xml version="1.0" encoding="utf-8"?>
<configuration>
     <configSections>
          <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
     </configSections>
     <runtime>
          <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
               <probing privatePath="Languages" />
          </assemblyBinding>
     </runtime>
    <startup>
      <supportedRuntime version="v2.0.50727" />
      <supportedRuntime version="v4.0" />
    </startup>

  <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <targets async="true">
      <target name="InstallerLogTarget" xsi:type="File" fileName="${tempdir}/hpbcsiPostInstall.log" deleteOldFileOnStartup="false"
              header=""
              footer=""
              layout="${time}  ${message} ${onexception:inner=${newline}!!!!!!!!!!!!!!!!!!!${newline}${exception:format=type,message,method,stacktrace:maxInnerExceptionLevel=5:innerFormat=shortType,message,method,stacktrace}${newline}${stacktrace}${newline}!!!!!!!!!!!!!!!!!!!}"
            >
      </target>
      <target name="InstallReportTarget" xsi:type="File" fileName="${tempdir}/hpbcsiInstallReport.log" deleteOldFileOnStartup="false"
              header="${newline}****** Started ${processname} - ${longdate} ******${newline}"
              footer="${newline}###### Finished ${processname} - ${longdate} #####${newline}"
              layout="[${longdate}] - ${level} - ${message}"
            >
      </target>
      <target name="PerfReportTarget" xsi:type="File" fileName="${tempdir}/hpbcsiInstallTime.csv" deleteOldFileOnStartup="false"
              header=""
              footer=""
            >
        <layout xsi:type="CsvLayout">
          <column layout="${longdate}" />
          <column layout="${qpc:difference=true}" />
          <column layout="${message}" />
        </layout>
      </target>

      <!-- debug window 
      <target name="DebugWindow" xsi:type="RichTextBox"
            height="400"
            width="600"
            autoscroll="true"
            maxLines="0"
            showMinimized="false"
            toolWindow="true"
            useDefaultRowColoringRules="true"
            layout="[${longdate}] - ${level} - ${message}">
      </target>-->
      
    </targets>

    <rules>
      <logger name="hpbcsiInstallerLog" minLevel="Trace" writeTo="InstallerLogTarget"/>
      <logger name="hpbcsiInstallReport" minlevel="Trace" writeTo="InstallReportTarget"/>
      <logger name="hpbcsiPerfReport" minlevel="Trace" writeTo="PerfReportTarget"/>
      
      <!-- debug 
      <logger name="*" minlevel="Info" writeTo="DebugWindow"/>-->
      
    </rules>

  </nlog>
  
</configuration>
