×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    8

    Question Application Log Files

    Hi,

    This may be a silly question, but here goes.

    I have searched and found no answer, so, where (directory) can my application place a log file that I can view without having to deal with all the security issues.

    Can my application write a log file to the "C:\" directory, and am I able to view it using something like Y-Xplore? The security capability aspect of the OS makes it so frustrating to test and develop on.

    Thanks in advance.

    Kal

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,740

    Re: Application Log Files

    C:\Data and E:\ are perfect locations, you can see them from the built-in File Manager too (it shows c:\Data as "Phone Memory" root)

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    8

    Re: Application Log Files

    Thanks. I will give it a try.

  4. #4
    Registered User
    Join Date
    Sep 2008
    Posts
    8

    Re: Application Log Files

    Doesn't seem to be working. I am only guessing, but perhaps my application cannot write to the C:\Data directory.

    I can only guess, because I'm developing blindly here, I cannot see anything, no permissions!!.

    It works fine in the emulator, though

  5. #5
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Application Log Files

    Hi,
    Try adding capability ReadUserData WriteUserData in your mmp and then check if it is writing in the log file or not.
    Maximus
    S60 Developer
    Impossible is nothing

  6. #6
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Application Log Files

    You need not worry about special signing also since these capabilities are user defined capabilities so you can self sign your application also.
    Maximus
    S60 Developer
    Impossible is nothing

  7. #7
    Registered User
    Join Date
    Sep 2008
    Posts
    8

    Question Re: Application Log Files

    I am using Open Signed Online and I "Select All" capabilities. I tried adding ReadUserData WriteUserData in my mmp, no success.

    Kal

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,740

    Re: Application Log Files

    If you learn about data caging, you will see that any application can write into c:\Data.
    And Read/WriteUserData has nothing to do with file access anyway.
    You should check how you are trying to open/create the log file. Show some code perhaps.

  9. #9
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Application Log Files

    Quote Originally Posted by yogpan View Post
    Hi,
    Try adding capability ReadUserData WriteUserData in your mmp and then check if it is writing in the log file or not.
    You got to love this "add capability X and Y" approach. Of course at some point you run out of capabilities (it seems kalnyc1 already did) and then what? Use a bigger hammer?!
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. Replies: 1
    Last Post: 2008-05-08, 12:32
  2. i am missing some files in FTP Application.
    By Tanya in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-02-23, 08:54
  3. Can a PC suite application visit all the files of phone?
    By inter_fan in forum PC Suite API and PC Connectivity SDK
    Replies: 4
    Last Post: 2007-08-10, 18:12
  4. Replies: 0
    Last Post: 2005-01-18, 10:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×