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 Pankaj Chomal <Pa...@amdocs.com> on 2006/12/29 10:41:01 UTC
Using same log4j.properties for logging in two different log file
Hi All,
I want to use an existing (existing in my application) log4j.properties
file for logging the logging information in two different log file, is
it possible?
If Yes, then how it will be differentiating that which information needs
to be logged to which log file?
Thanks,
Pankaj Chomal
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Using same log4j.properties for logging in two different log file
Posted by James Stauffer <st...@gmail.com>.
You define two appenders and make each appender point to a different
file. You then probably want to assign those appenders to different
loggers.
On 12/29/06, Pankaj Chomal <Pa...@amdocs.com> wrote:
>
>
> Hi All,
>
> I want to use an existing (existing in my application) log4j.properties
> file for logging the logging information in two different log file, is
> it possible?
>
> If Yes, then how it will be differentiating that which information needs
> to be logged to which log file?
>
> Thanks,
> Pankaj Chomal
>
>
> This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
> you may review at http://www.amdocs.com/email_disclaimer.asp
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
--
James Stauffer http://www.geocities.com/stauffer_james/
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