Contenido principal

sldiagviewer.diary

Log diagnostic messages and build information in file

    Description

    sldiagviewer.diary logs the warnings, errors, and build information in a text file diary.txt located in the current folder.

    example

    sldiagviewer.diary(filename) logs the diagnostic messages and build information in a text file filename located in the current folder.

    example

    sldiagviewer.diary(toggle) sets the logging state of the current log file as "on"or "off".

    example

    sldiagviewer.diary(filename,"UTF-8") changes the character encoding for the log file filename from system default character encoding to UTF-8.

    example

    Examples

    Input Arguments

    collapse all

    Name of log file, specified as a string scalar or character vector.

    Example: "mySimulationDiary.txt"

    Example: "C:/MyLogs/logDiary.txt"

    Logging state, specified as "on" or "off".

    Version History

    Introduced in R2014a