{"repo":"gajus/roarr","free":true,"listed":false,"github":"https://github.com/gajus/roarr","clone":"git clone https://github.com/gajus/roarr.git","description":"JSON logger for Node.js and browser.","language":"TypeScript","stars":1137,"topics":["json","logger","debugging"],"license":null,"category":"dev-tools","readme_excerpt":"Roarr JSON logger for Node.js and browser. Motivation For a long time I have been a big fan of using debug . debug is simple to use, works in Node.js and browser, does not require configuration and it is fast. However, problems arise when you need to parse logs. Anything but one-line text messages cannot be parsed in a safe way. To log structured data, I have been using Winston and Bunyan. These packages are great for application-level logging. I have preferred Bunyan because of the Bunyan CLI program used to pretty-print logs. However, these packages require program-level configuration – when constructing an instance of a logger, you need to define the transport and the log-level. This makes them unsuitable for use in code designed to be consumed by other applications. Then there is pino. pino is fast JSON logger, it has CLI program equivalent to Bunyan, it decouples transports, and it has sane default configuration. Unfortunately, you still need to instantiate logger instance at the application-level. This makes it more suitable for application-level logging just like Winston and Bunyan. I needed a logger that: - Does not block the event cycle (=fast). - Does not require initialization. - Produces structured data. - Decouples transports. - Has a CLI program. - Works in Node.js and browser. - Configurable using environment variables. In other words, - a logger that I can use in an application code and in dependencies. - a logger that allows to correlate logs between the main","default_branch":null,"files":null,"tree":[],"storefront":"/r/gajus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gajus/roarr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}