logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Kan" <dmitry....@gmail.com>
Subject Re: Log files unlocking
Date Fri, 18 Aug 2006 14:25:45 GMT
The log file is being removed with Java at the end of a public (not static)
method of the class (with Log object configured). I invoke this method in
main() of another class.

Does it matter whether the LogManager.shutdown() is called in a static
context (static method)?

On 18/08/06, James Stauffer <stauffer.james@gmail.com> wrote:
>
> How (with Java or external?) and when (while program is running?) are
> you trying to remove it?
>
> On 8/18/06, Dmitry Kan <dmitry.kan@gmail.com> wrote:
> > Hi there!
> >
> > I've got a small problem with unlocking log files after all logging's
> done.
> > I've configured the Log object for my class using PropertyConfigurator
> so
> > that all loggings go directly to a certain log file. The issue is that
> it
> > turns out to be rather tricky task to unlock that file (I need to remove
> it
> > after the app's done its work). I've just tried LogManager.shutdown();
> but
> > it hasn't worked. Any ideas are appreciated.
> >
> > --
> > best wishes,
> > Dmitry Kan
> >
> >
>
>
> --
> 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
>
>


-- 
best wishes,
Dmitry Kan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message