.NET Tip Arizona

Simplify finding the entry you need from an event log. Read on and learn more.

Local Companies

JDR Consulting
480-491-4756
1660 S. Alma School Rd. Ste 223
Mesa, AZ
Multi Edit Software Inc
480-610-2700
7532 E Dulciana Cir
Mesa, AZ
Component Software Inc
480-496-9303
5831 W Kesler St
Chandler, AZ
Vertex Inc
(480) 283-8600
2961 E Marlene Dr
Gilbert, AZ
Lariat Software, LLC.
800-647-2764
9201 N. 25th Ave. #260
Phoenix, AZ
hard disk data recovery
001-980-000-0000
Street
City, AZ
Aya Solutions
480-833-1727
1955 E Hackamore St
Mesa, AZ
Alphasource Technologies Inc Inc
520-620-6888
3120 W Corte Olivia
Tucson, AZ
Synapps LLC
(480) 664-6071
4649 E Carriage Ct
Gilbert, AZ
Wizard Computer Services
(480) 926-3144
2104 E Freeport Ln
Gilbert, AZ



I frequently receive calls asking why an application is not behaving as expected. Many times, a quick look at the database can provide the answer. Sometimes, however, things are a little more involved. Our internal applications make extensive use of event logs. The event logs will contain error messages, warnings, and in the case of some occasionally connected systems a log of all the data received. Trying to manually forge through the event logs can be a daunting task. The answer, of course, is to let a computer do most of the searching for you. Here is a class with a couple static methods that you can use to quickly limit the number of event log entries that you have to manually search through:

public enum EventLogFilterType
{
TimeGenerated,
UserName,
MachineName,
Category,
Source,
EntryType,
Message,
EventID
}

public sealed class SearchEventLog
{
// Prevent this class from being instantiated.
private SearchEventLog() {}
public static EventLogEntry[]
FilterEventLog(EventLogFilterType FilterType,
IEnumerable Entries, object Criteria1,
object Criteria2)
{
ArrayList FilteredEntries = new ArrayList();
foreach (EventLogEntry Entry in Entries)
{
switch (FilterType)
{
case EventLogFilterType.TimeGenerated:...

Read the Rest of this Article at Developer.com

Featured Local Company

hard disk data recovery

001-980-000-0000
Street
City, AZ

Related Local Events
Toastmasters
Dates: 3/25/2010 - 3/25/2010
Location: Peoria Chamber of Commerce
Peoria, AZ
View Details

Toastmasters
Dates: 5/6/2010 - 5/6/2010
Location: Peoria Chamber of Commerce
Peoria, AZ
View Details

Toastmasters
Dates: 6/17/2010 - 6/17/2010
Location: Peoria Chamber of Commerce
Peoria, AZ
View Details

Toastmasters
Dates: 7/29/2010 - 7/29/2010
Location: Peoria Chamber of Commerce
Peoria, AZ
View Details

Toastmasters
Dates: 9/9/2010 - 9/9/2010
Location: Peoria Chamber of Commerce
Peoria, AZ
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML