A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
log4j Output to Console and File
Joined: Apr 06, 2008
Jul 17, 2008 06:11:00
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.
Joined: Jan 25, 2008
Jul 17, 2008 07:16:00
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).
I agree. Here's the link:
- it saves me about five hours per week
subject: log4j Output to Console and File
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
| Powered by
Copyright © 1998-2013