wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes Log4j.properties ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4j.properties ?" Watch "Log4j.properties ?" New topic
Author

Log4j.properties ?

Edson Cezar
Ranch Hand

Joined: Mar 05, 2011
Posts: 74
    
    1
How I do for "logger" querys (JDBC) in console ?

since now I thank !
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Hi, Edson. Could you please post a better English translation of your question? What you posted is very hard to understand.
Edson Cezar
Ranch Hand

Joined: Mar 05, 2011
Posts: 74
    
    1
I want "log" sql in console
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

To log something to the console you have to do two things with log4j:

(1) Configure a console appender in the properties file.

(2) In your Java code, call one of the Logger methods to write a log entry.

You can find examples in Short introduction to log4j.

Is there some reason why you think "sql" is a problem?
Edson Cezar
Ranch Hand

Joined: Mar 05, 2011
Posts: 74
    
    1
Thanks a lot and sorry for my bad English

You really have reason.

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Log4j.properties ?
 
Similar Threads
WA #1.....word association
Cant use object from another class
Posting to bump up my count...
Text box value is not being completely filled with request attribute
The x900 effect ?