2018-01-31 23:35:54 +00:00
|
|
|
---
|
|
|
|
layout: page
|
|
|
|
title: Monitoring Logs
|
|
|
|
---
|
2018-11-23 18:05:51 +00:00
|
|
|
ENiGMA½ does not produce much to stdout. Logs are produced by Bunyan which outputs each entry as a JSON object.
|
2018-01-31 23:35:54 +00:00
|
|
|
|
|
|
|
Start by installing bunyan and making it available on your path:
|
|
|
|
|
2018-11-23 18:05:51 +00:00
|
|
|
```bash
|
|
|
|
npm install bunyan -g
|
|
|
|
```
|
|
|
|
|
|
|
|
or with Yarn:
|
|
|
|
```bash
|
|
|
|
yarn global add bunyan
|
|
|
|
```
|
2018-01-31 23:35:54 +00:00
|
|
|
|
|
|
|
To tail logs in a colorized and pretty format, issue the following command:
|
2018-11-23 18:05:51 +00:00
|
|
|
```bash
|
|
|
|
tail -F /path/to/enigma-bbs/logs/enigma-bbs.log | bunyan
|
|
|
|
```
|
2018-01-31 23:35:54 +00:00
|
|
|
|