{"repo":"achojs/acho","free":true,"listed":false,"github":"https://github.com/achojs/acho","clone":"git clone https://github.com/achojs/acho.git","description":"The Hackable Log","language":"JavaScript","stars":189,"topics":["hackable","log","logging","simple","debugger","debug","logger"],"license":"MIT","category":"dev-tools","readme_excerpt":"acho The &#x3C;hackeable /&#x3E; Log Features Different log levels skins. Beauty object interpolation. Diff & log trace support. Easy to customize, easy to hack. Install Usage Logging levels Examples Defaults Skin CLI Skin Syslog The first thing you need to do is create a new log instance: Then you can print a log based on the level: All methods are chainables: Establishing the loglevel is a good way to filter out undesired information from output. The available levels by default are: - fatal : Display calls to .fatal() messages. - error : Display calls to .fatal() , .error() messages. - warn : Display calls from .fatal() , .error() , .warn() messages. - info : Display calls from .fatal() , .error() , .warn() , info() messages. - debug : Display calls from .fatal() , .error() , .warn() , info() , debug() messages. Additionally exists two special levels: - muted : Avoid all output. - all : Allow print all message types. The default log level is all . You can define it in the constructor: or at runtime: Internal Store Sometimes, when you are interacting with a logger you need to store the logs to be used later instead of print all of them. We define .push as accumulator for store the log internally: If you want to print previously stored messages, just call the method .print : or you can retrieve the logs programatically from the internal storage at acho.messages The method .add combine .push and .print actions in one: It store the message internally but also print the log. For","default_branch":null,"files":null,"tree":[],"storefront":"/r/achojs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/achojs/acho/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."}