JDBCAppender Logging Solution
JDBCAppender Logging Solution
- Subject: JDBCAppender Logging Solution
- From: Greg <email@hidden>
- Date: Wed, 28 Sep 2005 12:52:36 +1000
I have been improving the logging functionality in my application
this past week to help track down problems in testing the
application. I found JDBCAppender to log entries to the database, but
found it lacking in some of the stuff I need when used with web
objects, for instance not been able to get the instance number of
application or the ip address of the host. I have modified
JDBCAppender so there is a new keyword that allows you to lookup
properties that have been set. In my case the instance number and the
ip address. These properties are defined in each instance of monitor -
DWOInstanceID=n -DHostIPAddress=192.168.x.x. In the properties of the
logger all you have to do is @PROPERTY:DWOInstanceID@ and it will get
the correct value.
I have also created an EO that gets the entries from the table so you
can easily view and filter the log. I have put all the required files
up at http://www.dlsxtreme.com/jdbcappender.zip. It may not be the
solution for every one, but it works for my requirements.
I hope people find it useful.
Greg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden