logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gulcu <...@urbanet.ch>
Subject Re: use of log4j with servlet
Date Fri, 05 Jan 2001 16:42:09 GMT


At 17:33 05.01.2001 +0100, you wrote:

>   I try to use log4j with my servlets applications. In all my servlets of
>a webapplication I declare in my first servlet for user access the
>BasicConfigurator with:
>BasicConfigurator.configure(new FileAppender (new PatternLayout ("%r [%t]
>%-5p %c %x - %m\n"), "path/to/my/logfile"));
>Sometimes, I go throw this line more than one time and if I do this, I got
>the same log message in my log file.
>Is there a way to detect if a BasicConfigurator is already configurate ?

View raw message