A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
log4j Output to Console and File
JLS Steff
Greenhorn
Joined: Apr 06, 2008
Posts: 3
posted
Jul 17, 2008 06:11:00
0
log4j runs great and builds a log flie.
I want the same log entries to echo to the screen as well as have them written to a file.
I can't find a way to do this.
Manuel DeAngelo
Greenhorn
Joined: Jan 25, 2008
Posts: 13
posted
Jul 17, 2008 07:16:00
0
Just create 2 appenders (1 file, 1 stdout), this should be working fine.
If you need more help, it will be useful to know how you configure log4j (property file, xml file, in Java code).
regards, Manuel
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: log4j Output to Console and File
Similar Threads
setting log4j
log files
logging
Log4j rolling policy must be declared?
Not able to save logs into .log file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter