I recently made a Windows service. I am having a lot of trouble viewing my my custom log messages.
When I go to Computer Management and view Event-Viewer --> Application, I see events, but I do not see my custom messages that I log using: EventLog.WriteEntry()
I just see generic messages for generic events like start stop pause. Any message that I log myself never appear.
Also I can't seem to find anywhere on the internet where to access the actual log file, which might have the messages I write during execution.
Any help would be appreciated (and is deperately needed!)
P.S. I know I could just write to some text file, but then there is the rare chance of file-locking and ioexceptions if my various threads try to write to it at the same time. I would much rather the standard logs worked then having to deal with all of that!
Thanks.
No replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









