473,809 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where is the event log ?

If i write to the event log like this:

EventLog.WriteE ntry("myPro","A pplcation_Start y",EventLogEntr yType.Informati o
n);

Where can i then see a list of thesse event, if i go into the event log in
computer management they are not there i think. Do i have to add a new log
file or something?

?

Best Regards,

p.s. I am writing to the event log from within the asp.net process, but i
added the asp.net acount to power users, so i thing it will be the same as
for a normal windows form.
Nov 15 '05 #1
1 1228
On Fri, 16 Jan 2004 04:53:07 +0100, "Anders Both"
<an********@hot mail.com> wrote:
If i write to the event log like this:

EventLog.Write Entry("myPro"," Applcation_Star ty",EventLogEnt ryType.Informat io
n);

Where can i then see a list of thesse event, if i go into the event log in
computer management they are not there i think. Do i have to add a new log
file or something?

?

Best Regards,

p.s. I am writing to the event log from within the asp.net process, but i
added the asp.net acount to power users, so i thing it will be the same as
for a normal windows form.

Hi there,

Here's what I think you need to do:
1. Create an EventLog object reference,
2. Set the source for your entry.
The EventLog constructor has several forms, so play around...
Eg (at it's simplest):

//=============== ====
EventLog elog = new EventLog();

if (!EventLog.Sour ceExists("Test App")) {
EventLog.Create EventSource("Te st App", "Applicatio n");
}
elog.Source = "Test App";
elog.WriteEntry ("Testing", EventLogEntryTy pe.Error);
Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

47
3654
by: Andrey Tatarinov | last post by:
Hi. It would be great to be able to reverse usage/definition parts in haskell-way with "where" keyword. Since Python 3 would miss lambda, that would be extremly useful for creating readable sources. Usage could be something like: >>> res = where: >>> def f(x):
0
1145
by: dina | last post by:
I am using one main aspx page, in which i am loading different user controls for different web pages. At one place, when i load a user control from another user control and come back to the same user control, and click a Button, for some reason, instead of firing Button_Click event, the code first fires the selectedindexchange event of the dropdown box (i have a dropdown on the usercontrol) and then fires the button_click event. i couldnot...
0
1336
by: Sam | last post by:
Hi, I have a class that receives a DataGrid control and populates it. However, I need to do an OnItemCreated event because if I'm missing data in a certain column, I display a HyperLink control in the DataGrid so that the user can enter the missing data. If there is data, I hide the HyperLink control. The problem is I pass the DataGrid control to a class and let the class populate it and return it to the ASPX page. I just don't know...
10
5569
by: mttc | last post by:
I read articles that suggest preventing delete by throwing Exception from RowDeleting Event. I not understand where I can catch this Error?
6
2814
by: BookerW | last post by:
Ok interesting, on my local machine And i did not do a good job of keeping track of the exact order.... but on my local machine in which i have vis studio 2003 installed and IIS for win XP, I copied the web.config file from the source code folder into the inetpub\wwwroot folder b/c that is where the ASP engine was looking for it.
4
2234
by: Phillip Vong | last post by:
I'm a newbie using VS2005 to learn and test. I'm testing against the Northwind DB. I created a simple variable called "myVariable" and I assigned it the character "c". I want my SQL query to use this variable in the "Where" statement where it will pull up all names with the letter "c" in it. How do I pass this variable on the the WHERE statement? I thought all I had to do was use the <% %> with my variable inside and that would work...
3
5545
by: geskerrett | last post by:
We have been asked to develop and application for a client that is a 'notification" system. We would like to use python, but are struggling to find the right starting point. Any suggestions, tips or sample code would be appreciated. Application outline; Machine A is running a "listener" application that is connected to a another device via the serial post and waits for events. We have not problem working with the serial port, or...
6
2054
by: Liming | last post by:
Hi, In a typical 3 tier model (view layer, busines layer and data access layer) where do you handle your exceptions? do you let it buble up all the way to the .aspx pages or do you handle it in your business layer and/or data access layer? suppose in my data access layer, I provide try and catch, log the exception and re-throw it back to business layer, then in yoru business layer, what do you do? throw it back to the code behind or...
4
5382
by: JS | last post by:
I have an application with many user controls and forms which display measurements in whatever the current unit system is. The current unit system is kept in my 'Units' static class as Units.CurrentSystem. I also have an event in the Units class called Units.CurrentSystemChanged. My controls hook into this event (usually in their OnLoad() method). However, I am not quite sure where to unhook the event. I could do it in Dispose(),...
6
1446
by: HillBilly | last post by:
One question I have not figured out is how to learn which event parameter list is supported by a control? EventArgs, CommandEventArgs, what?
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10387
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5689
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.