How to create a log-file with "compiler.build.standaloneApplication", that the "Appliciation Compiler App" creates with "Create log file" under "Additional runtime settings"
조회 수: 11 (최근 30일)
이전 댓글 표시
Hi,
i try to replace the workaround for building standalone applications with the "Application Compiler App" with the command "compiler.build.standaloneApplication" using 2021a.
Everything works fine, except the Logfile that contains the same information that you can see in the command shell window, while executing the final application.
Usually the "Appliciation Compiler App" creates that log-file with checking "Create log file" under "Additional runtime settings".
How can i present that function to the compiler.build.standaloneApplication-syntax?
For example something link this:
buildResults = compiler.build.standaloneApplication(appFile,...
'OutputDir' ,ExeFile_Link ,'ExecutableName',ExeFile_Datei,'Verbose','On', ...
'WRITELOGFILE', 'MY_LOGFILE.log')
댓글 수: 0
답변 (1개)
Erik Newton
2024년 12월 3일
This doesn't appear to be a supported option as of R2024b.
What I did as a workaround is to use the diary command at the start of my application. This has the added benefit of being run-time selectable; I have a logfilename setting in my config file.
This works for me in R2022b on Windows 10 Enterprise, but hasn't for other people/versions:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!