I want to find the most recent entry, or all entries after a given date/time
using the EventLog class. Do I have to iterate through all entries, or are
they sorted so I can start from index 0 and just iterate until the entry
date is older than a given date?

Re: EventLog entries sort by Sijin

Sijin
Wed Sep 29 13:03:04 CDT 2004

Why don't you test it out by writing a small app that reads entries from
the EventLog and writes the DateTime as well...

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph


Jeremy Chapman wrote:
> I want to find the most recent entry, or all entries after a given date/time
> using the EventLog class. Do I have to iterate through all entries, or are
> they sorted so I can start from index 0 and just iterate until the entry
> date is older than a given date?
>
>

Re: EventLog entries sort by Jeremy

Jeremy
Wed Sep 29 18:07:16 CDT 2004

Becuase I'm not sure if some setting in windows can alter the sort. Can i
really on the eventlog giving me back the records always in the same order?

"Sijin Joseph" <sijinNOSPAMdotnet@hotmail.com> wrote in message
news:e1omM7kpEHA.3716@TK2MSFTNGP10.phx.gbl...
> Why don't you test it out by writing a small app that reads entries from
> the EventLog and writes the DateTime as well...
>
> Sijin Joseph
> http://www.indiangeek.net
> http://weblogs.asp.net/sjoseph
>
>
> Jeremy Chapman wrote:
> > I want to find the most recent entry, or all entries after a given
date/time
> > using the EventLog class. Do I have to iterate through all entries, or
are
> > they sorted so I can start from index 0 and just iterate until the entry
> > date is older than a given date?
> >
> >