It really depends on your particular environment. In my current project
I find it easier to locate all my loggers in a singleton class and send
all logging requests to it. Either way works.

Cheers,
Philip. 

-----Original Message-----
From: James Stauffer [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 17, 2006 10:08 AM
To: Log4J Users List; [EMAIL PROTECTED]
Subject: Re: Where prints the logs?

It is correct to mix the calls to logger.debug, logger.info, etc with
the other code.  I find that it fits with the other code quite nicely.

On 3/17/06, Pedro Costa <[EMAIL PROTECTED]> wrote:
>
> When we develop a application, is it right to mix the logger.debug, 
> logger.info, etc, with the code? Or we can put the logs in another 
> class, inside static methods?
>
> Thanks,
> Pedro
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to