A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
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:
subject: log4j Output to Console and File
Not able to save logs into .log file
Log4j rolling policy must be declared?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014