[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    Re: one project multiple log files
From:       Matt Brown <msbcode () gmail ! com>
Date:       2009-11-20 11:52:12
Message-ID: 4f43761a0911200352h1f465641u9acc24ed3d504f38 () mail ! gmail ! com
[Download RAW message or body]


What does your log4j.xml/properties look like?

What you want is easily achievable, you just need to set it up correctly.

log4j.rootLogger = ERROR

log4j.logger.com.one = DEBUG, ONE
log4j.logger.com.two = DEBUG, two

log4j.appender.ONE = ...
log4j.appender.TWO = ...

etc.

On Fri, Nov 20, 2009 at 2:49 AM, d1ve blu3 <d1ve2blu3@gmail.com> wrote:

> hi,,
>
> i'm new to this group.
>
> I've manage to generate 2 log files. but it seems both content are same,,
>
> what i want to know is it possible to generate two log files with
> different content?
> example:
> I had a java project. it have 2 packager. "com.one" and "com.two".
> What i want now is to log every class in "com.one" to one.log and log
> every class in "com.two" to two.log.
>
> is it possible???
>
> thanks before,,,
>
> --
> This transmission may contain confidential or privileged material. Any use
> of
> this information by anyone other than the intended recipient is prohibited.
> If
> you have received this transmission in error, please immediately throw
> away your computer because this message will explode in 10 second.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic