EventLog bug?

3 messages Options
Embed this post
Permalink
kevinbe

EventLog bug?

Reply Threaded More More options
Print post
Permalink
I had a target configured this way and it never sent any messages to the event log:

<target name="eventlog" xsi:type="EventLog" layout="${longdate}|${level}|${message}" log="Application" source="My Source" />

After downloading the source and stepping into it I found that _operational was never getting set to true.  The reason is that I didn't have a machineName value - which supposedly defaults to ".".  The problem is that it may default to this value but this doesn't allow _operational to get set!  The moment I provided the exact same attribute value as the supposed default it worked!  That doesn't make sense... so I'd call this a bug.  Agree?  Perhaps something to fix for the next version?

Thanks,
Kevin.
Jaroslaw Kowalski

Re: EventLog bug?

Reply Threaded More More options
Print post
Permalink
Can you file a bug on nlog.codeplex.com ?
 
Jarek

On Wed, Nov 4, 2009 at 9:42 PM, kevinbe [via NLog Forum] <[hidden email]> wrote:
I had a target configured this way and it never sent any messages to the event log:

<target name="eventlog" xsi:type="EventLog" layout="${longdate}|${level}|${message}" log="Application" source="My Source" />

After downloading the source and stepping into it I found that _operational was never getting set to true.  The reason is that I didn't have a machineName value - which supposedly defaults to ".".  The problem is that it may default to this value but this doesn't allow _operational to get set!  The moment I provided the exact same attribute value as the supposed default it worked!  That doesn't make sense... so I'd call this a bug.  Agree?  Perhaps something to fix for the next version?

Thanks,
Kevin.

kevinbe

Re: EventLog bug?

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Done: 2995

Cheers,
Kevin

Sent from my iPhone

On Nov 5, 2009, at 1:25 AM, "Jaroslaw Kowalski [via NLog Forum]" <[hidden email]> wrote:

Can you file a bug on nlog.codeplex.com ?
 
Jarek

On Wed, Nov 4, 2009 at 9:42 PM, kevinbe [via NLog Forum] <[hidden email]> wrote:
I had a target configured this way and it never sent any messages to the event log:

<target name="eventlog" xsi:type="EventLog" layout="${longdate}|${level}|${message}" log="Application" source="My Source" />

After downloading the source and stepping into it I found that _operational was never getting set to true.  The reason is that I didn't have a machineName value - which supposedly defaults to ".".  The problem is that it may default to this value but this doesn't allow _operational to get set!  The moment I provided the exact same attribute value as the supposed default it worked!  That doesn't make sense... so I'd call this a bug.  Agree?  Perhaps something to fix for the next version?

Thanks,
Kevin.