README
Soft-Artel Tools: JSON format logger
Installation:
$ npm i -g sa-logs
Usage:
Processing a file
$ sa-logs < path-to-file > < app1 > < app2 >
Processing a stream
$ tail out.log | sa-logs < app1 > < app2 >
$ docker-compose logs | sa-logs < app1 > < app2 >
Options
Option | Description |
---|---|
-l, --level | Specify level (INFO,DEBUG,etc.) |
-n, --linesCount | Reading lines count |
-s, --startFormat | Fields to include (pid,name,etc.) |
-g, --regexp | Search by regexp |