Skip to content

javascript-studio/studio-emojilog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Studio Emojilog

🌈 A pretty printer for the Studio Log format with emoji ✨

npm Version SemVer Build Status License

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

  • --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

License

MIT

Made with ❀️ on 🌍

About

🌈 A pretty printer for the Studio Log format with emoji ✨

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published