• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4j.properties ?

 
Edson Cezar
Ranch Hand
Posts: 119
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How I do for "logger" querys (JDBC) in console ?

since now I thank !
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 119
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want "log" sql in console
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 119
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot and sorry for my bad English

You really have reason.

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic