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

List:       log4j-user
Subject:    Re: appender is new
From:       Jacob Kjome <hoju () visi ! com>
Date:       2005-10-28 15:07:42
Message-ID: 1130512062.43623ebed1a14 () my ! visi ! com
[Download RAW message or body]

Quoting Charith Fernando <charith.fernando@cslworld.com>:

> Hi all,
>
>
>
> When I create a FileAppender is there a way to check whether the file was
> created as a new file or the appender is using an existing file///
>

You mean when you create the appender programatically?  If you are doing that,
then just check for the file's existence using the File object before you
create the appender.  In any case, why would you care?  It helps to say why you
want to do something.  Then people can suggest other things you may not have
considered to solve whatever problem you are having.

Jake

>
>
> Thank you,
>
> Regards,
>
> Charith I. Fernando
>
> +94 77 3263222 (Mobile)
>
>
>
>




---------------------------------------------------------------------
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