AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

log4j | logging class member variables into oracle db | JDBC

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Language Programming
View previous topic :: View next topic  
Author Message
siva
Guest





PostPosted: Thu May 17, 2007 7:12 am    Post subject: log4j | logging class member variables into oracle db | JDBC Reply with quote



Hi.

I m fairly new to log4j and trying things out as part of a new
project. I m using JDBCAppender to log statements, and I have a
scenario where I want to post class member variables to the oracle
table.
for example.
I have oracle table defined as - ORA_SIGN_LOG
USER_NAME
PASSWORD
DATE_TIME_STAMP
MESSAGE

I want to supply values for the first 3fields from my java class (NOT
as part of the message as an object/) and able to log it to
corresponding fields in the table. I thought of putting as part of the
message and slicing it into pieces using sql in the log4j properties,
curious to know whether any inbuilt methodology from log4j. googled
with not much help.

Thanks in advance.
Sivaram
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Language Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.