DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: JrDebugLogger -- issue with default writing to app dir on vista/win7  (Read 10,775 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
One thing that needs to be fixed in JrDebugLogger is that by default if you just tell debuglogger to write to a file, it will try to create that file in the application directory.

That worked fine on XP, but with VISTA and Win7, MS "virtualization" will cause the file to be written to mysterious hidden directories.

Of course you can always specify a full path for the debug log file but this is much less than ideal.

What i was thinking of adding is some windows-specific code that would kick in if you are building on windows, which would put the file somewhere like Documents/JrDebugLog/appname/filename IFF running under vista/win7 and no explicit file path is provided.

Does that seem like the best solution?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: JrDebugLogger -- issue with default writing to app dir on vista/win7
« Reply #1 on: November 14, 2010, 04:26 PM »
This has now been implemented in v1.11.01 (Nov 13, 2010).

Original address: https://www.donationcoder.com/forum/index.php?topic=22471.0