Link to home
Start Free TrialLog in
Avatar of mgmhicks
mgmhicks

asked on

How to write to event Log with in my web application

I have tried this code to write to the event log with no success.  Didn't think it would be that easy.  Could someone send me in the right direction.

imports system.diagnostics


 Dim myLog As New EventLog("")
                    myLog.Source = "ResidentPortal"
                    myLog.WriteEntry("Invalid Password Attempt", EventLogEntryType.FailureAudit)
SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mgmhicks
mgmhicks

ASKER

Didn't end up doing it, but all points were either valid or helpful.