How to log exception to All Users Application Data Directory

Topics: Exception Handling Application Block, Logging Application Block
Sep 29, 2008 at 2:32 PM
Hi all,
I'm trying to log all exceptions from my app to "all users application data directory" using a flatfile trace listener.
Setting the filename property to %appdata%\Exceptions.log works fine, but I would like to put the log in %appdata%\Application Data\MyAppName, since "Application Data" is localizable (in my italian machine is "Dati Applicazioni") I cannot hardwire it.
I didn't find any enviroment variable pointing to that folder( %ALLUSERAPPDATA% doesn't work), is there another way?
Do I have to write a custom tracelistener?
Thanks in advance.
Andrea Baccin