StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Error logging to event logExpand / Collapse
Author
Message
Posted 09/28/2006 9:37:12 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 3:42:31 PM
Posts: 646, Visits: 22,710
I have added my own error logging routine to UnhandledExceptionFound, currently among other things it writes errors to the application log.

Is there a way to create an event log specific to my application to write errors to, or do I have to use one of the Windows default log types?

I have looked and didnt find anything and figured I would post here before I gave up because I would really like to segregate my applications errors to their own event log.

Thanks
Post #3155
Posted 09/28/2006 9:46:55 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 3:42:31 PM
Posts: 646, Visits: 22,710
application log should read "Windows Event Logs"

I am using

Dim objEventLog As New EventLog()
objEventLog.WriteEntry(Entry, EventType)

Post #3157
Posted 09/28/2006 9:55:49 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 09/26/2008 8:30:36 AM
Posts: 2,685, Visits: 1,886
I believe there is only one Application event log, but you can specify the "source" for the entries that should allow you to separate your entries from other applications.


www.bungie.net
Post #3160
Posted 09/28/2006 9:57:47 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 3:42:31 PM
Posts: 646, Visits: 22,710
OK thanks Ben, that was my conclusion.
Post #3161
Posted 09/28/2006 1:49:07 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 09/26/2008 8:30:36 AM
Posts: 2,685, Visits: 1,886
No problem


www.bungie.net
Post #3168
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 4:09pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.