{"repo":"cb1kenobi/snooplogg","free":true,"listed":false,"github":"https://github.com/cb1kenobi/snooplogg","clone":"git clone https://github.com/cb1kenobi/snooplogg.git","description":"Your mind on your logs and your logs on your mind","language":"TypeScript","stars":28,"topics":["nodejs","debug","logging","logger","log","snoop"],"license":"MIT","category":"cli-tools","readme_excerpt":"SnoopLogg is a lightweight, zero dependency debug logging library for Node.js, Bun, and Deno. It is specifically designed for CLI programs, daemons, and libraries. What separates SnoopLogg from other loggers is the ability to 'snoop' on other log instances. Instead of passing the logger around, create a single top-level logger, tell it to snoop, then create as many new loggers as you want and the top-level logger will relay them all. Real talk. SnoopLogg is dope, but it's not the best solution for things such as logging HTTP server requests and web browser console is not supported (yet). For CLI apps and libraries, SnoopLogg is the shiz. Features - Snoop on other SnoopLogg instances to aggregate log messages - Pipe log messages to one or more streams (such as a file or socket) - Namespaced and nested namespaced loggers - Filter messages by namespace or log level - Automatic namespace colorization - Custom log message formatting and styling - Pretty stack trace rendering - Support for object mode streams - Zero dependencies Basic Logging SnoopLogg provides 7 loggers. log() is the only one that doesn't print a label. By default, it prints the time from which the program has started, the log method, and the log message. The format is completely customizable. Logging Values SnoopLogg uses the built-in util.format() and util.inspect() to render values. Namespaces The default export is a snooplogg instance that can be invoked as a function to create a namespaced child logger. You c","default_branch":null,"files":null,"tree":[],"storefront":"/r/cb1kenobi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cb1kenobi/snooplogg/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."}