Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Source in event log
Message
From
18/08/2010 13:41:15
 
 
To
18/08/2010 12:14:49
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01477086
Message ID:
01477106
Views:
30
>When we create an event log, there is a source associated to it. The one I created indicates it. In Windows 7, I see that in the Event Viewer we can have a section for Applications and Services Logs. How can I have my source to have an entry in there?

Do you mean that you want your log entries to appear in one of the existing sources such as 'Application'? If so it's just a question of setting the EventLog.Source property. e.g:
 Dim el As EventLog = New EventLog()
        el.Source = "Application"
        el.WriteEntry("Oops")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform