From 79b29b6d6653ce5e609889da7174a60161fc2ebe Mon Sep 17 00:00:00 2001 From: ni-richard Date: Thu, 12 Sep 2019 17:08:56 +0200 Subject: [PATCH] Created process.log.new (markdown) --- process.log.new.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 process.log.new.md diff --git a/process.log.new.md b/process.log.new.md new file mode 100644 index 0000000..016b6d5 --- /dev/null +++ b/process.log.new.md @@ -0,0 +1,28 @@ +* **Description**: When a supervised process writes to its *stdout/stderr*, it will raise this event. +* **Subscribers**: [ConsoleLogsHandler](https://github.com/avatao-content/baseimage-tutorial-framework/wiki/ConsoleLogsHandler) + +```json +{ + "key": "process.log.new", + "intent": "event", + "scope": "broadcast" +} +``` + +| Parameter | Type | Required | Description | +| ------------ |:--------:|:------------------:| --------------------------- | +| *stdout* | `string` | :heavy_check_mark: | Latest log entries from *stdout*. | +| *stderr* | `number` | :heavy_check_mark: | Latest log entries from *stderr* | + +*** + +**Example**: +```json +{ + "key": "process.log.new", + "intent": "event", + "scope": "broadcast", + "stderr": " * Serving Flask app...", + "stdout": " * Serving Flask app..." +} +``` \ No newline at end of file