• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How to connect DB log to a JTextArea ?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've looked around and not seen any code that seems to cover this. I've tried to figure it out myself, but just cannot get my head around it.
Basically, I have an application where I would like to have the DB log output written to a JTextArea (or other similar component is OK). My first assumption is to use the getLogWriter() method of DriverManager, but then I cannot figure out what to do with it. I'm sure that I'll have to programatically dump to the JTextArea on my own, but how? Or, am I barking up the wrong tree? The name "LogWriter" makes me think that it is only for me sending messages in!?! I want to get the DB's messages, not my own.
Any direction or guidance will be much appreciated.
Thanx,
msd
 
Paddy spent all of his days in the O'Furniture back yard with this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic