SAP Knowledge Base Article - Public

3371638 - How to change the default log path in AO

Symptom

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

By default, AO log files are stored under path '%temp%\SAP\COF'. There is a need to change the AO default log files path.

Environment

SAP Analysis for Microsoft Office 2.8

Resolution

Note that the following approach to change AO log file path does not take effect when 'Support Mode' or 'Profiling Mode' Log Severity is enabled in File-> Analysis->Troubleshoot->Advanced Mode, when either of these Troubshoot modes is selected , AO overwrites the following config file and will only use the default path '%temp%\SAP\COF' as the log file path. Check more details in Logging and Troubleshooting in Analysis.

1. Go to this place: `%PROGRAMDATA%\SAP\Cof`.

2. Open the `Log.config` file using a text editor.

3. Find the following line in `Log.config` file: 
     <file type="log4net.Util.PatternString" value="${TEMP}\Sap\Cof\%property{Prefix}Trace_%processid.glf" />


   
4. Replace the `${TEMP}\Sap\Cof ` part of the line with the path you want to save the log. Note: `${TEMP}\Sap\Cof ` is the default path.

   For example, to save the log to the path 'C:\Users\I\Documents', the line should look like this after changing:

   <file type="log4net.Util.PatternString" value="C:\Users\I\Documents\%property{Prefix}Trace_%processid.glf" />

5. Save changes and replace the original 'Log.config' file.

See Also

2129389 - Analysis 2.x log / Trace Files

Keywords

 AO, Analysis for Excel, Analysis for Office, A4O, AFO, Troubleshoot, Advanced Mode, Trouble shooting, trace, support mode, support trace , KBA , BI-RA-AO-XLA , Excel Addin , How To

Product

SAP Analysis for Microsoft Office 2.8