- Mar 18, 2003
- 5,513
- 0
- 0
As you may have noticed, I am normally a java programmer but today I am researching something a little different. Our app needs to send errors of the the windows event log. The worst of it is taken care of already: we have various native (c++, .NET...) solutions that will write to the log and the jni shell to access them from our app. The problem we are having is with specifying an eventId and a category; it seems we have to precompile a dll with possible values hardcoded. This would make our development process fairly tedious as event ids are added and changed constantly (but they are final after building).
What I'd like to know is: is there a way that these parameters (event id, category) can be specified on the fly without the need for the logging service to have prior knowledge of their values? Proving that this cannot be done would also be very helpful.
I'm also open to any and all comments you have on the general subject of windows logging as I am completely new to the subject. Also appreciated would be links to tutorials/specifications on logging, so long as they discuss this pre-specification of ids.
Thanks.
What I'd like to know is: is there a way that these parameters (event id, category) can be specified on the fly without the need for the logging service to have prior knowledge of their values? Proving that this cannot be done would also be very helpful.
I'm also open to any and all comments you have on the general subject of windows logging as I am completely new to the subject. Also appreciated would be links to tutorials/specifications on logging, so long as they discuss this pre-specification of ids.
Thanks.