Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

log-handler

Add custom log handler

Syntax

--log-handler format command

Description

--log-handler format command adds a log handler that writes log data to the application specified by command in the format specified by format.

The server instance launches an instance of the log handler at startup. All log events are sent to the STDIN stream of the log handler. The STDOUT and STDERR streams of the log handler are captured and written to INSTANCE_ROOT/log/custom_logger_N.out and INSTANCE_ROOT/log/custom_logger_N.err.

Parameters

format

Format used to write log events. Valid values are:

  • text/plain

  • text/json

  • text/xml

command

Application launched to process log events.

Examples

Send log events to a custom JSON parser that prepares performance graphs.

--log-handler text/json perf_grapher
Was this topic helpful?