A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
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).
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
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