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 Jitendra Kharche <Ji...@geometricsoftware.com> on 2006/07/28 16:25:32 UTC
Using logger in libraries
Hi,
I am writing a library and want to know any practice followed to use
logger in a library.
Thanks in advance.
Regards,
Jitendra
Re: Using logger in libraries
Posted by Endre Stølsvik <En...@Stolsvik.com>.
Jitendra Kharche wrote:
> Hi,
>
> I am writing a library and want to know any practice followed to use
> logger in a library.
Consider commons-logging or slf4j.
Regards,
Endre
Re: Using logger in libraries
Posted by Javier Gonzalez <ja...@gmail.com>.
And don't include any kind of log4j configuration file inside the jar.
(had some app server logs VERY cluttered because someone from another
area of the company sent me a packaged library with an included
log4j.xml file with the root logger at debug level... :)
On 7/28/06, James Stauffer <st...@gmail.com> wrote:
> Use automatic configuration so the the user of the library can change
> the configuration and don't include the log4j.jar or classes in your
> jar.
>
> On 7/28/06, Jitendra Kharche <Ji...@geometricsoftware.com> wrote:
> > Hi,
> >
> > I am writing a library and want to know any practice followed to use
> > logger in a library.
> > Thanks in advance.
> >
> > Regards,
> > Jitendra
> >
> >
>
>
> --
> 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
>
>
--
Javier González Nicolini
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Using logger in libraries
Posted by James Stauffer <st...@gmail.com>.
Use automatic configuration so the the user of the library can change
the configuration and don't include the log4j.jar or classes in your
jar.
On 7/28/06, Jitendra Kharche <Ji...@geometricsoftware.com> wrote:
> Hi,
>
> I am writing a library and want to know any practice followed to use
> logger in a library.
> Thanks in advance.
>
> Regards,
> Jitendra
>
>
--
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