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