embark/lib/utils
emizzle f5c77b1416
Process logs API refactor
There are three separate instances of process log APIs: embark logs, blockchain logs (when in standalone mode), and child process logs (storage, communication, blockchain, etc). Each one was repeating the implementation of creating a process log API endpoint. This commit centralises the API declaration by using the class `ProcessLogsApi`.

`ProcessLogsApi` is started for all three components mentioned above: blockchain (in standalone) in the `BlockchainListener` module, embark in the `EmbarkListener` module, and for all child processes in the `ProcessLauncher`.

These listeners have two functions:
1. Create the process logs API endpoints for `get` and `ws`, and
2. Ensure that all logs are logged through the `LogHandler`, which normalises the output of the log and ensures each log has a timestamp and id (used in the cockpit for log ordering).

Also, this commit moved the pipeline in to a module, so that the `embark` object could be passed to the `ProcessLogsApi` (to be used for registering API endpoints).
2018-10-25 13:04:28 +02:00
..
accountParser.js add default account if set in config 2018-10-22 19:35:04 +02:00
async_extend.js migrate all the code to ES6 2017-03-30 20:12:39 +09:00
debug_util.js migrate all the code to ES6 2017-03-30 20:12:39 +09:00
host.js host utils 2018-08-02 15:30:43 -05:00
logHandler.js Process logs API refactor 2018-10-25 13:04:28 +02:00
template_generator.js additional warning re: potential version incompatibility 2018-10-22 19:53:50 +02:00
test_logger.js conflict in specialconfigs 2018-10-22 19:54:46 +02:00
utils.js use fuzzy to do search; but still do sorting 2018-10-23 11:00:28 +02:00