logging question RRS feed

  • Question

  • I am using the EntLIb Logging to log to the event log. Every thing works fine untill I change the source attribute on the listeners mode to the name of my application. I used the example from the config file from the quick start logging sample. In the event log it lists the source as "Logging Quick Start" but I would like this to be the name of my app.

    If I change it I get the error: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.



    <add name="Event Log Destination"

    type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging"

    listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging"

    source ="Logging Quick Start"

    formatter="Text Formatter"





    Please help.



    Monday, May 5, 2008 2:12 PM





    the issue here is that entlib is trying to create the log with the name you gave it.
    In order to create a new log, entlib first checks if the log already exists. 
    Apparently, the username running the applicaiton process doens't have access to the security log.
    check the rights of the account running the process Smile


    Hope this helps you out

    Monday, May 5, 2008 9:02 PM