I'm looking for some advice on how to contribute some changes I've
made to log4j's NTEventLogAppender. Since the bug I fixed and enhancements
I made are all interrelated, I don't feel creating a bug report and
a couple of enhancement requests is appropriate. I've modified 3 existing
files and added 4 new ones. The changes were done to support a project
I'm working on, but are very general and should be useful to others.
If these changes are desirable for inclusion into logj4, how do I package
them up and who do I send them to?
NTEventLogAppender changes:
- Fixed logging of event categories so the text strings show up in the
NT Event Log instead of numbers.
- Added a flag to NTEventLogAppender class and support for it in
nteventlog.cpp, that allows the programmer to turn on or off the
display for the current username in the NT Event Log. Instead of N/A.
- Added a way for the programmer to specify their own resource only
DLL so they can user their own custom event categories, instead of
the ones compiled into NTEventLogAppender.dll. Very useful since
categories were never really intended to convey the level of the log
messages anyway.
- Added a new class called CategorizedMessage. It's used a wrapper
around an existing log message so a category number can be associated
with it.
- Added a way for the programmer to specify their own resource only
DLL so they can user their own custom event mesage, instead of
the one compiled into NTEventLogAppender.dll. Not very useful since
there can still be only one event message and the ID has to be 4096,
but it was easy and leaves room for future enhancements like supporting
multiple event messages.
--
===========================================================================
Brian Lind (972)547-4090
Computer Lackey [EMAIL PROTECTED]
Eclectic Computing Concepts McKinney, Texas
---------------------------------------------------------------------------
Good salesmen and good repairmen will never go hungry.
-- R.E. Schenk
===========================================================================
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>