logs and handlers and how to do them
So for various reasons I need to have my code log instead of to a separate file as I've used in the past, directly to a specialized windows application logs. Can anybody tell me a basic structure of how you are supposed to use one of the handler classes with your loggers to instead of loggnig to your own file log, logging to built in windows either custom logs or application logs that are visible in the Event Viewer?
Thanks!
Josh
[453 byte] By [
JoshRa] at [2007-11-26 17:49:26]

Java as you may know is meant for platform independence. If your app "needs" to write to specifically Windows event logs (which have no equivalence in other platforms), then Java probably isn't the right tool for you.My bet: You don't really "need" to write to Windows event logs.
On the other hand, log4j does have an NTEventLogAppender. Its documentation does say
"WARNING This appender can only be installed and used on a Windows system.
Do not forget to place the file NTEventLogAppender.dll in a directory that is on the PATH of the Windows system. Otherwise, you will get a java.lang.UnsatisfiedLinkError."
And that isn't violating platform independence any more than having to put Windows-style path names into your log4j.properties file on Windows machines violates platform independence.