{"library":"glogg","type":"library","category":null,"description":"Glogg is a global logging utility designed for Node.js environments, primarily associated with the Gulp.js build system. It offers a straightforward, event-emitter-based interface for namespaced logging. The current stable version is 2.2.0. Releases are infrequent but occur when features or maintenance are required, typically in conjunction with updates within the Gulp ecosystem. A key differentiator is its reliance on `sparkles` (an augmented EventEmitter) to create loggers that emit events for different log levels (debug, info, warn, error). This architecture allows various parts of an application to retrieve a logger by its namespace and subscribe to specific log events, facilitating decoupled log handling. It supports `util.format()` for string interpolation, enabling printf-style logging, and can also log any data type directly. A critical operational aspect is that `error` events *must* be handled by at least one listener to prevent the Node.js process from crashing.","language":"javascript","status":"active","version":"2.2.0","tags":["javascript","global","log","logger","logging","shared"],"last_verified":"Wed May 27","install":[{"cmd":"npm install glogg","imports":["const getLogger = require('glogg');","logger.on('event', handler);","const { info, error } = logger;"]},{"cmd":"yarn add glogg","imports":[]},{"cmd":"pnpm add glogg","imports":[]}],"homepage":null,"github":"https://github.com/gulpjs/glogg","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/glogg","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/glogg/compatibility"}}