{"repo":"bevry/caterpillar","free":true,"listed":false,"github":"https://github.com/bevry/caterpillar","clone":"git clone https://github.com/bevry/caterpillar.git","description":"Caterpillar is the ultimate logging system for Deno, Node.js, and Web Browsers. Log levels are implemented to the RFC standard. Log entries can be filtered and piped to various streams, including coloured output to the terminal, the browser's console, and debug files. You can even write your own transforms.","language":"TypeScript","stars":402,"topics":["transform-streams","pipe","logger","logging","client-side","nodejs","caterpillar","deno"],"license":null,"category":"analytics","readme_excerpt":"Caterpillar Caterpillar is the ultimate logging system for Deno, Node.js, and Web Browsers. Log levels are implemented to the RFC standard. Log entries can be filtered and piped to various streams, including coloured output to the terminal, the browser's console, and debug files. You can even write your own transforms. Usage Complete API Documentation. Examples - Deno Example - Node.js Example - Web Browser Example - Writing a Custom Transform Overview The RFC Log Levels are provided by the rfc-log-levels package which follows RFC 3164 - The BSD Syslog Protocol. Log Entries that are within the lineLevel range, will have their line information fetched using the get-current-line package. The Logger is what you write your log messages to, which you then pipe to destinations and transforms. The Filter transport is used to filter out log levels that we do not want to pass onto the next destination. The Human transport is used to convert the Log Entries into a human readable and colourful output. The Browser transport is used to send the human output, including colours, to the Web Browser console. The Transform is used to write your own transforms, and is what all the others are based from. Node.js Guide To get started for Node.js, setup a new Node.js project for this guide and install Caterpillar. Then edit our index.js file with the following, that will output all the log messages in JSON format to stdout, and can be run via node index.js : Outputting in JSON format is not a nice","default_branch":null,"files":null,"tree":[],"storefront":"/r/bevry","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bevry/caterpillar/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."}