123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?xml version="1.0" encoding="utf-8" ?>
- <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
- <configSections xdt:Transform="InsertBefore(/configuration/*[1])">
- <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
- <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
- </configSections>
- <loggingConfiguration name="Logging Application Block" tracingEnabled="true" defaultCategory="GeneralLog" logWarningsWhenNoCategoriesMatch="true"
- xdt:Transform="InsertAfter(/configuration/*[1])">
- <listeners>
- <add name="Database Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.Database.FormattedDatabaseTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
- databaseInstanceName="%%CONNECTION_STRING%%" writeLogStoredProcName="dbo.WriteLog" addCategoryStoredProcName="dbo.AddCategory" formatter="Text Formatter" traceOutputOptions="None" />
- </listeners>
- <formatters>
- <add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" template="Timestamp: {tab}{timestamp}
Category: {tab}{category}
Activity Code: {tab}{eventid}
Priority: {tab}{priority}
Severity: {tab}{severity}
UserName: {tab}{title}
Machine: {tab}{machine}
Application: {tab}{appDomain}
Session Id: {tab}{processId}
Win32 ThreadId: {win32ThreadId}
Thread Name: {tab}{threadName}
Message: {tab}{message}
Payload: {tab}{processName}
Extended Properties: {newline}{dictionary({key} - {value}
)}" name="Text Formatter" />
- <add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" template="Extended Properties: {newline}{dictionary({key} - {value}
)}" name="Text Formatter for DB" />
- </formatters>
- <categorySources>
- <add switchValue="All" name="GeneralLog">
- <listeners>
- <add name="Database Trace Listener" />
- </listeners>
- </add>
- </categorySources>
- <specialSources>
- <allEvents switchValue="All" name="All Events">
- <listeners>
- <add name="Database Trace Listener" />
- </listeners>
- </allEvents>
- <notProcessed switchValue="All" name="Unprocessed Category">
- <listeners>
- <add name="Database Trace Listener" />
- </listeners>
- </notProcessed>
- <errors switchValue="All" name="Logging Errors & Warnings">
- <listeners>
- <add name="Database Trace Listener" />
- </listeners>
- </errors>
- </specialSources>
- </loggingConfiguration>
- </configuration>
|