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 "White, James M" <ja...@boeing.com> on 2005/10/03 19:41:52 UTC

Logging to files

Currently, we log our exceptions to a log file and everything works
well.  But, what happens when log4j can't do this?  Will it
automatically write to System.err?

Basically, it's my task to handle the rare situations when log4j doesn't
write to our log file, which would be to write to System.err.  All
comments are appreciated.

Thanks,

James

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


Re: Logging to files

Posted by James Stauffer <st...@gmail.com>.
If it couldn't write to a file it would write that fact to std. error
but not the logs themself.  You could do some sort of backup appender.

On 10/3/05, White, James M <ja...@boeing.com> wrote:
> Currently, we log our exceptions to a log file and everything works
> well.  But, what happens when log4j can't do this?  Will it
> automatically write to System.err?
>
> Basically, it's my task to handle the rare situations when log4j doesn't
> write to our log file, which would be to write to System.err.  All
> comments are appreciated.
>
> Thanks,
>
> James
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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