473,385 Members | 1,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to get EventID

111 100+
Hi all,

I am writing eventlog.

In EventLog class having WriteEntry() to write eventlog into the Event Logs file.

It contains some parameter.

How to get the eventID, category, rawData for an exception

eventID
Type: System..::.Int32

The application-specific identifier for the event.

category
Type: System..::.Int16

The application-specific subcategory associated with the message.

rawData
Type: array< System..::.Byte >[]()[]

An array of bytes that holds the binary data associated with the entry.
May 22 '08 #1
1 1350
Plater
7,872 Expert 4TB
I believe there is an ENUM somewhere with this information, perhaps MSDN has some examples for it?
May 22 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Frank | last post by:
I want to use the category and the EventID parameters in the WriteEntry of the EventLog. How do you define the EventID and Category? I am using VB.NET 2003 THanks!
1
by: Crea-Ue. Kirdar | last post by:
hi there, i've hardly tried to find a solution. searched forums, usenet, google... so. i am having an application, that loops thru all the entries in the eventlog and reads those values. in a...
2
by: Wellingotn Rampazo | last post by:
Hi guys, I have an application that handle errors and log it at windows event log. When we are logging events, we are changing the application source to use our custom source (ex: MyApp) or...
1
by: ipramod | last post by:
Hi, I am debugging one of my apps and I noticed that the EventID property of the EventLogEntry class does not always match up with the ID that is displayed in the MMC event viewer. Some of the...
2
by: kplkumar | last post by:
Hi all I am fairly new to windows scheduler. I have an .exe console application that needs to be run 1st of every month. I created a scheduled task in Windows Schduler and called the .exe. ...
0
by: TeamEITC | last post by:
Just recently (Today only... with no previous cases) im receiving errors on my SQL servers. I run Sharepoint Portal Servers x 2 (clustered) and 2x SQL Servers (clustered). The 2 sql servers are SHR3...
10
klarae99
by: klarae99 | last post by:
I am working on an Inventory Database in Access 2003. I am having trouble with a report I designed to show current inventory in stock. I have a form (frmInventory) that is unbound. There are four...
1
by: Jeff | last post by:
I have developed an application and writing to the event log. I want to use the eventid to identify certain error conditions. Is there a standard for this or can I use any eventid. Regards...
0
by: Frank Hauptlorenz | last post by:
Hello out there, I have 2 services running. The first one runs in session mode and the 2nd not. The first one should call an operation of the 2nd one asynchronously, because this is doing some...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.