Change location of adxloader.log

Add-in Express™ Support Service
That's what is more important than anything else

Change location of adxloader.log
 
Kevin Wornell




Posts: 36
Joined: 2006-08-14
Is it possible to change the location of the adxloader.log file? Currently my setup is placing this in the My Documents\Add In Express folder. I have checked but cannot seem to find how to relocate this file.

I would like to relocate the log file to c:\Windows folder.

hacking my way through life, one syntax error at a time
Posted 12 May, 2008 10:21:23 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Kevin.

You need to add the 'logFileLocation' element to the adxloader.dll.manifest file as shown below. However, I think it will not work in Vista because of the security reasons.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<assemblyIdentity name="MyAddin, PublicKeyToken=8a925cbdc72439fe" />
<loaderSettings generateLogFile="true" shadowCopyEnabled="true" privileges="user" configFileName="app.config">
<logFileLocation>C:\Windows</logFileLocation>
</loaderSettings>
</configuration>

Posted 12 May, 2008 11:10:27 Top
Kevin Wornell




Posts: 36
Joined: 2006-08-14
Sergey,

Thank you for the help. Luckily I don't have to deal with Vista at this point. Perhaps you could add the ability to change the location of the log file via a property box or the like in a future version.

hacking my way through life, one syntax error at a time
Posted 13 May, 2008 10:54:24 Top
Kevin Wornell




Posts: 36
Joined: 2006-08-14
Also is it possible to set this up so the log shows all the add-ins in the case of multiple adx add-ins on the same machine? At this point I have several separate add-ins and the log only shows the results for the last one.
hacking my way through life, one syntax error at a time
Posted 06 Jun, 2008 13:43:32 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Kevin.

No, it is not implemented in Add-in Express.
Posted 10 Jun, 2008 12:37:56 Top
Kevin Wornell




Posts: 36
Joined: 2006-08-14
If I change the location of the log by adding the 'logFileLocation' element to the adxloader.dll.manifest file as shown below and set each add in to a separate location will that result in each log being kept separately? Also can the log file name be changed?


<?xml version="1.0" encoding="utf-8"?>
<configuration>
<assemblyIdentity name="MyAddin, PublicKeyToken=8a925cbdc72439fe" />
<loaderSettings generateLogFile="true" shadowCopyEnabled="true" privileges="user" configFileName="app.config">
<logFileLocation>C:\Windows</logFileLocation>
</loaderSettings>
</configuration>


hacking my way through life, one syntax error at a time
Posted 11 Jun, 2008 15:08:31 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Kevin.

Yes, it should work. But the name of the log file is not configurable.
Posted 12 Jun, 2008 09:56:15 Top
Kevin Wornell




Posts: 36
Joined: 2006-08-14
Am I correct in assuming that if I set the generatelogfile setting to false it will no longer generate the log file?
hacking my way through life, one syntax error at a time
Posted 24 Jun, 2008 11:57:53 Top
Andrei Smolin


Add-in Express team


Posts: 18856
Joined: 2006-05-11
Hello Kevin,

Yes, correct.


Andrei Smolin
Add-in Express Team Leader
Posted 24 Jun, 2008 12:12:30 Top
David Ing




Posts: 39
Joined: 2007-02-16
Hi,

Is the logFileLocation property only available in ADX 2008 adxloader?
Posted 24 Jun, 2008 14:34:11 Top