README.md
September 4, 2018 ยท View on GitHub
Studio Emojilog
๐ A pretty printer for the Studio Log format with emoji โจ

Features
- A command line tool to pretty print Studio Log ndjson.
- Fancy formats with emoji for log file reading pleasure.
- Map stack traces back to original sources with source maps.
Usage
Assuming you have the following ndjson in a file called logs.json:
{"ts":1486630378584,"ns":"Server","topic":"launch","msg":"My Service","data":{"port":433}}
Send the logs to the emojilog command for pretty printing:
โฏ cat logs.json | emojilog
09:52:58 ๐ Server My Service port=433
Install
โฏ npm i -g @studio/emojilog
CLI Options
--formator-fset the formatter to use. Defaults to "fancy".--no-tshide timestamps--no-topichide topics--no-nshide namespaces--no-datahide data--no-stackhide stacks--stack messageonly show the error message--stack peekshow the message and the first line of the trace (default)--stack fullshow the message and the full trace--stacksame as--stack full--mapuse given source maps file to map stack traces
Related modules
- ๐ป Studio Log logs ndjson to an output stream.
- ๐ฉ Studio Log Format pretty print Studio Log streams.
- โ Studio Log X x-out confidential data in log entries.
- ๐ฆ Studio Changes is used to create the changelog for this module.
License
MIT
Made with โค๏ธ on ๐