You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Lewis John Mcgibbney <le...@gmail.com> on 2012/10/01 19:17:35 UTC

Pushing STDOUT to File...

Good Afternoon,

I currently am working on the following log4j.properties file [0] as I
use many classes from the terminal and I would like to be able to
store the logs (redirect?) them to a file.

Currently this is just not happening for me even though (AFAIK) I've
specified the DRFA and various other configuration. Still when I use
my classes from the terminal no log directory appears and no gora.log
appears within the log directory... this is what I would like.

I can't seem to sort this one out...any help would be greatly appreciated.

Kind Regards

Lewis

[0] http://svn.apache.org/repos/asf/gora/trunk/conf/log4j.properties
-- 
Lewis

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Pushing STDOUT to File...

Posted by Jacob Kjome <ho...@visi.com>.
You don't appear to reference your "DRFA" appender in any logger.  You 
specifically reference the "console" appender in the rootLogger.  Why do you 
think that your logging should go to file when you specifically have it 
configure to go to Console?

Jake

On Mon, 1 Oct 2012 18:17:35 +0100
 Lewis John Mcgibbney <le...@gmail.com> wrote:
> Good Afternoon,
> 
> I currently am working on the following log4j.properties file [0] as I
> use many classes from the terminal and I would like to be able to
> store the logs (redirect?) them to a file.
> 
> Currently this is just not happening for me even though (AFAIK) I've
> specified the DRFA and various other configuration. Still when I use
> my classes from the terminal no log directory appears and no gora.log
> appears within the log directory... this is what I would like.
> 
> I can't seem to sort this one out...any help would be greatly appreciated.
> 
> Kind Regards
> 
> Lewis
> 
> [0] http://svn.apache.org/repos/asf/gora/trunk/conf/log4j.properties
> -- 
> Lewis
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org