create eventlog with properties

Hi

I tried to create a custom event log for my application, and it seems to work with CreateEventSource method, the only problem is when I check the properties of the custom event log, all of these are shown as "not available"

Log Name: (full path)

Size

Create Date

Modified

Accessed

And all other properties in "Log Size" section (default is 512 and 7 days).

exist a way to set this properties

Thanks,

Mauricio.




Answer this question

create eventlog with properties

  • Leomath

    It works fine when I try it, all properties are set. Maybe a security issue, maybe you need to restart the event viewer, Action + Refresh is not reliable on the event log names, just the event log messages...



  • satya999

    to the properties of the event log.... if you go to event viewer and make right click->properties over an event log you'll see his properties (for example you can see the properties of "applicaton" log)

    I'm using CreateEventSource method to create a new source and the new event log if it does not exist. No errors....

    Thanks,

    Mauricio.



  • SoMeDuDe

    sorry, I did not say my environment... I'm working with windows XP SP1, framework 1.1 and I logged in with a user who has administrator rights.... in this environment the properties of the event log are not set...

    BUT, If I run the same code to create an event log in a windows 2003 server logged in with "administrator" user it works fine, the event log is creating with all his properties.....

    maybe the problem is a security issue, but why and what any ideas

    thanks,

    Mauricio.



  • Carl Peto

    What do the properties apply to...File properties What code are you using to write to your log What code are you using to retrieve your properties Are you getting any errors

  • create eventlog with properties