Hi Greg,

You should be able to read the file while the program is running. Check out
this quick example:
https://gist.github.com/ihabunek/5765463

It's reading the file contents while logging to it in.

The appender acquires a lock before writing to the file, but releases it
after writing. The log file should not be locked.

Now, I don't know how you're accessing the file, or how you're sending it
via email. Maybe you can send me a code snippet which demonstrates your
problem?

Best regards,
Ivan



On 12 June 2013 15:44, Chu, Greg <greg....@wendys.com> wrote:

>  During the application running the log file is locked. I am trying to
> email the log file inside the application while the application is running.
>
> Do I have any way to close the log file so it is unlocked, so that I can
> get the log file and email it?
>
>
>
> Thanks
>
>
>
> Greg
>
>
>  Notice: This e-mail message and its attachments are the property of The
> Wendy's Company or one of its subsidiaries and may contain confidential or
> legally privileged information intended solely for the use of the
> addressee(s). If you are not an intended recipient, then any use, copying
> or distribution of this message or its attachments is strictly prohibited.
> If you received this message in error, please notify the sender and delete
> this message entirely from your system.
>

Reply via email to