Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Source in event log
Message
De
18/08/2010 13:41:15
 
 
À
18/08/2010 12:14:49
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01477086
Message ID:
01477106
Vues:
31
>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")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform