EnterpriseLibrary / logging-application-block

Apache License 2.0
1 stars 9 forks source link

Windows Event Log Not Working for EnterpriseLibrary.Logging.NetCore v6.3.2 #9

Open basutkva-bh opened 1 year ago

basutkva-bh commented 1 year ago

Event Logging is not working in EnterpriseLibrary.Logging.NetCore. FormattedEventLogTraceListener Class is present Framework but Not in Core.

I tried on an sample application for framework and core.

File logging is working but windows event log is not working in Core.

Am i missing anything here? Is Event log supported in Core then what is listener's name?

icnocop commented 2 weeks ago

I'm experiencing the same issue.

System.Configuration.ConfigurationErrorsException: Invalid TraceListenerData type in configuration 'listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging"'

The type Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData does not exist in Microsoft.Practices.EnterpriseLibrary.Logging.dll