To debug issues on the adapter level, the dotnet.log and excel.log are both required. See below the steps required to obtain these logs:
1) dotnet.log
Enable dotnet logging by placing a file named log-config.json in the working directory of the Excel Adapter -C:\Users\<Username>\AppData\Local\OpenFin\apps\<appName>\assets\excel-adapter\1.x.x
{
"targetfile":"dotnet.log",
"enabled": true,
"minlevel": "trace",
"toconsole": false
}
The dotnet.log will then be found in the following location: %localappdata%\openfin\logs\dotnet.log
2) excel.log
- Update the call to
getExcelApplication
to enable adapter logging by specifyingtrue
as param value:import { getExcelApplication } from '@openfin/excel';
const excel = await getExcelApplication(true);
- After the first time running this version of the adapter (to allow the adapter package to be copied to the local OpenFin app data folder), open "assets\excel-adapter\1.4.X\OpenFin.Excel.exe.config" from the calling app folder in the OpenFin local app data and replace:
<listeners> <remove name="Default" /> </listeners>
with:<listeners> <add name="logFileListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="{PATH_TO_OPENFIN_LOCAL_APP_DATA_DIR}\logs\excel.log" /> <remove name="Default" /> </listeners>
- Then reload the application and adapter log messages should now be outputted to the specified log file.
Comments
0 comments
Please sign in to leave a comment.