Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Web.config.install.xdt 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  3. <configSections xdt:Transform="InsertBefore(/configuration/*[1])">
  4. <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" />
  5. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  6. </configSections>
  7. <loggingConfiguration name="Logging Application Block" tracingEnabled="true" defaultCategory="GeneralLog" logWarningsWhenNoCategoriesMatch="true"
  8. xdt:Transform="InsertAfter(/configuration/*[1])">
  9. <listeners>
  10. <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"
  11. databaseInstanceName="%%CONNECTION_STRING%%" writeLogStoredProcName="dbo.WriteLog" addCategoryStoredProcName="dbo.AddCategory" formatter="Text Formatter" traceOutputOptions="None" />
  12. </listeners>
  13. <formatters>
  14. <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}&#xA;Category: {tab}{category}&#xA;Activity Code: {tab}{eventid}&#xA;Priority: {tab}{priority}&#xA;Severity: {tab}{severity}&#xA;UserName: {tab}{title}&#xA;Machine: {tab}{machine}&#xA;Application: {tab}{appDomain}&#xA;Session Id: {tab}{processId}&#xA;Win32 ThreadId: {win32ThreadId}&#xA;Thread Name: {tab}{threadName}&#xA;Message: {tab}{message}&#xA;Payload: {tab}{processName}&#xA;Extended Properties: {newline}{dictionary({key} - {value}&#xA;)}" name="Text Formatter" />
  15. <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}&#xA;)}" name="Text Formatter for DB" />
  16. </formatters>
  17. <categorySources>
  18. <add switchValue="All" name="GeneralLog">
  19. <listeners>
  20. <add name="Database Trace Listener" />
  21. </listeners>
  22. </add>
  23. </categorySources>
  24. <specialSources>
  25. <allEvents switchValue="All" name="All Events">
  26. <listeners>
  27. <add name="Database Trace Listener" />
  28. </listeners>
  29. </allEvents>
  30. <notProcessed switchValue="All" name="Unprocessed Category">
  31. <listeners>
  32. <add name="Database Trace Listener" />
  33. </listeners>
  34. </notProcessed>
  35. <errors switchValue="All" name="Logging Errors &amp; Warnings">
  36. <listeners>
  37. <add name="Database Trace Listener" />
  38. </listeners>
  39. </errors>
  40. </specialSources>
  41. </loggingConfiguration>
  42. </configuration>