Activation error occured while trying to get instance of type LogWriter

后端 未结 7 2124
你的背包
你的背包 2020-12-17 14:47

I am trying to using the Logging Application block of Enterprise Library 5.0 to log simple message to the Windows event log on Win XP SP3 system using:

Logge         


        
相关标签:
7条回答
  • 2020-12-17 15:10

    Additionally to examples of Simon Tewsi  I want to add my example, when logging configuration was located in a separate file but section descriptions were missed in app.config

       

    <section name ="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging" />  
    
     <loggingConfiguration configSource="EnterpriseLibraryLogging.config" />
    
    0 讨论(0)
提交回复
热议问题