Main Content

main-log-format

Text format for the main log file

Since R2020a

Syntax

--main-log-format format

Description

main-log-format specifies the text format for logging events in the main.log file. If you do not set this property, the server writes the log data as plain text.

Parameters

format

Format for writing log events. Valid values are:

  • text/plain — Log the data in plain text.

  • text/json — Log the data in JSON format.

  • text/xml — Log the data in XML format.

Examples

Log events in JSON format.

--main-log-format text/json

Version History

Introduced in R2020a