Groups > Symbian > Symbian general discussion > Thanks Hamish




Public location for application log file?

Public location for application log file?
Wed, 18 Oct 2006 14:54:26 +020
Hi all,
My application generates a text log file while running, which we use for 
investigating errors. I want users to be able to send this file from their 
devices to me when they encounter problems, so I put it in a directory 
accessible through the internal File Manager (e.g. C:\Nokia\Installs for 
Series 60).
My question is - is there some better location for putting such files? 
Preferably on the same drive where the application is installed... And more 
importantly, that location has to be write-accessible to the application 
itself on Symbian v9, of course.
TIA
Uriah 

Post Reply
Re: Public location for application log file?
Wed, 18 Oct 2006 23:51:51 -000
Hi Uriah

Except for the datacaged directories /sys/, /resource/, private/ everywhere
is write accessible to the application. So from a UI-independent point of
view you could put it anywhere (SymbianSigned would expect you to do the
extra work of deleting the file on uninstallation of your application -
since it won't be done automatically as it would be in your /private
directory.

On S60 I'd suggest /Nokia/Other/ rather than installs. Its still visible to
the native file manager. The other obvious choice is to have it in your
private directory, but use Send-As functionality to send the file direct
from your application.

Regards
Hamish

"Uriah" <uriaheisenstein@mobiletornado.com> wrote in message
news:6f%230EVr8GHA.6124@UKCOL01WWEB01.symbian.intra...
> Hi all,
> My application generates a text log file while running, which we use for
> investigating errors. I want users to be able to send this file from their
> devices to me when they encounter problems, so I put it in a directory
> accessible through the internal File Manager (e.g. C:\Nokia\Installs for
> Series 60).
> My question is - is there some better location for putting such files?
> Preferably on the same drive where the application is installed... And
more
> importantly, that location has to be write-accessible to the application
> itself on Symbian v9, of course.
> TIA
> Uriah
>
>

Post Reply
Thanks Hamish
Thu, 19 Oct 2006 11:37:56 +020
I'm actually still working with Symbian versions before 9.1, so I delete 
this file on uninstallation anyway. I guess I'll move it to /Nokia/Other 
indeed, at least when I start working with 9.1, having seen that it does 
exist on memory cards as well.
I don't want to use Send-As from within the application since this log is 
also informative if the application crashes... ;-) and it is overwritten 
when the application is started again, unless I get into the real mess of 
handling several log files.
Regards,
Uriah

"Hamish Willee" <hamish_w@tpg.com.au> wrote in message 
news:rzXi9Cx8GHA.408@UKCOL01WWEB01.symbian.intra...
> Hi Uriah
>
> Except for the datacaged directories /sys/, /resource/, private/ 
> everywhere
> is write accessible to the application. So from a UI-independent point of
> view you could put it anywhere (SymbianSigned would expect you to do the
> extra work of deleting the file on uninstallation of your application -
> since it won't be done automatically as it would be in your /private
> directory.
>
> On S60 I'd suggest /Nokia/Other/ rather than installs. Its still visible 
> to
> the native file manager. The other obvious choice is to have it in your
> private directory, but use Send-As functionality to send the file direct
> from your application.
>
> Regards
> Hamish
>
> "Uriah" <uriaheisenstein@mobiletornado.com> wrote in
message
> news:6f%230EVr8GHA.6124@UKCOL01WWEB01.symbian.intra...
>> Hi all,
>> My application generates a text log file while running, which we use
for
>> investigating errors. I want users to be able to send this file from 
>> their
>> devices to me when they encounter problems, so I put it in a directory
>> accessible through the internal File Manager (e.g. C:\Nokia\Installs
for
>> Series 60).
>> My question is - is there some better location for putting such files?
>> Preferably on the same drive where the application is installed... And
> more
>> importantly, that location has to be write-accessible to the
application
>> itself on Symbian v9, of course.
>> TIA
>> Uriah
>>
>>
>
> 

Post Reply
about | contact