Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Open Source Projects
Search Coderanch
Advance search
Google search
Register / Login
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
Ron McLeod
Paul Clapham
Devaka Cooray
Tim Cooke
Sheriffs:
Rob Spoor
Liutauras Vilda
paul wheaton
Saloon Keepers:
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Piet Souris
Bartenders:
Stephan van Hulst
Forum:
Other Open Source Projects
Log4j.properties ?
Edson Cezar
Ranch Hand
Posts: 119
2
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How I do for "logger" querys (
JDBC
) in console ?
since now I thank !
Paul Clapham
Marshal
Posts: 28305
95
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I want "log" sql in console
Paul Clapham
Marshal
Posts: 28305
95
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks a lot and sorry for my bad English
You really have reason.
Thanks.
Something must be done about this. Let's start by reading this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Log4J configuration problem
Log4j ...selective logging to appenders
log4j:WARN Please initialize the log4j system properly
how to configure apache log4j for gwt application
Log4j: how do the loggers being added to repository?
More...