Created process.log.new (markdown)

ni-richard 2019-09-12 17:08:56 +02:00
parent 8cc304424b
commit 79b29b6d66

28
process.log.new.md Normal file

@ -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..."
}
```