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?