$ npm install @verdaccio/logger-commons
Note: This package is mostly for internal use by Verdaccio and is only intended to be used with Verdaccio 6.x.
The @verdaccio/logger-commons package provides the common logger setup logic shared across different Verdaccio logger implementations. It handles logger creation, format configuration, and destination setup.
npm install @verdaccio/logger-commons
import { setup, createLogger, prepareSetup } from '@verdaccio/logger-commons';
// Common setup with a Pino instance
const logger = setup(options, pinoInstance);
// Create a configured logger with custom format
const logger = createLogger(options, destination, format, pino);
setup(options, pinoInstance) - Common setup logic for logger initializationcreateLogger(options, destination, format, pino) - Creates a configured logger instance with custom format support (pretty or JSON)prepareSetup(options, pino) - Prepares logger configuration for initializationVerdaccio is run by volunteers; nobody is working full-time on it. If you find this project to be useful and would like to support its development, consider making a donation - your logo might end up in this readme. 😉
Donate 💵👍🏻 starting from $1/month or just one single contribution.
If you want to report a security vulnerability, please follow the steps which we have defined for you in our security policy.
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
Thank you to all our backers! 🙏 [Become a backer]
Thanks to the following companies to help us to achieve our goals providing free open source licenses.
This project exists thanks to all the people who contribute. [Contribute].
If you have any issue you can try the following options. Do not hesitate to ask or check our issues database. Perhaps someone has asked already what you are looking for.
Verdaccio is MIT licensed
The Verdaccio documentation and logos (excluding /thanks, e.g., .md, .png, .sketch files within the /assets folder) are Creative Commons licensed.
© 2010 - cnpmjs.org x YWFE | Home | YWFE