https://github.com/javascript-studio/studio-emojilog
🌈 A pretty printer for the Studio Log format with emoji ✨
https://github.com/javascript-studio/studio-emojilog
cli emoji logging ndjson node sourcemaps
Last synced: 3 days ago
JSON representation
🌈 A pretty printer for the Studio Log format with emoji ✨
- Host: GitHub
- URL: https://github.com/javascript-studio/studio-emojilog
- Owner: javascript-studio
- License: mit
- Created: 2018-06-29T16:36:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-24T13:51:47.000Z (about 4 years ago)
- Last Synced: 2025-08-21T08:39:35.176Z (about 2 months ago)
- Topics: cli, emoji, logging, ndjson, node, sourcemaps
- Language: JavaScript
- Size: 682 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
Studio Emojilog
🌈 A pretty printer for the Studio Log format with emoji ✨

## Features
- A command line tool to pretty print [Studio Log][1] ndjson.
- [Fancy formats][2] 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`:
```json
{"ts":1486630378584,"ns":"Server","topic":"launch","msg":"My Service","data":{"port":433}}
```Send the logs to the `emojilog` command for pretty printing:
```bash
❯ cat logs.json | emojilog
09:52:58 🚀 Server My Service port=433
```## Install
```bash
❯ npm i -g @studio/emojilog
```## CLI Options
- `--format` or `-f` set the formatter to use. Defaults to "fancy".
- `--no-ts` hide timestamps
- `--no-topic` hide topics
- `--no-ns` hide namespaces
- `--no-data` hide data
- `--no-stack` hide stacks
- `--stack message` only show the error message
- `--stack peek` show the message and the first line of the trace (default)
- `--stack full` show the message and the full trace
- `--stack` same as `--stack full`
- `--map` use given source maps file to map stack traces## Related modules
- 👻 [Studio Log][1] logs ndjson to an output stream.
- 🎩 [Studio Log Format][2] pretty print Studio Log streams.
- ❎ [Studio Log X][3] x-out confidential data in log entries.
- 📦 [Studio Changes][4] is used to create the changelog for this module.## License
MIT
Made with ❤️ on 🌍[1]: https://github.com/javascript-studio/studio-log
[2]: https://github.com/javascript-studio/studio-log-format
[3]: https://github.com/javascript-studio/studio-log-x
[4]: https://github.com/javascript-studio/studio-changes