How to write a Logger in MATLAB to record errors, warnings and success messages of a function file?
15 visualizaciones (últimos 30 días)
I have tried using Diary, but it does not store line number. Nor does it store the command after which the error is captured. I need to understand how to write a logger properly in MATLAB, so I could add messages as well along with capturing error.
Amith el 27 de Mzo. de 2023
As per my understanding you wanted a logger that helps you to record errors ,warnings and success messages of a function file.
You can use log4m for logging your matlab code . Log4m is designed to be relatively fast and very easy to use. It has been designed to work well in a matlab environment. Use this documentation to learn more about log4m -