@verdaccio/logger
v8.0.0
Published
Verdaccio Logger
Readme
@verdaccio/logger - Verdaccio Logger
Note: This package is mostly for internal use by Verdaccio and is only intended to be used with Verdaccio 6.x.
Overview
The @verdaccio/logger package provides the main logger initialization for Verdaccio, built on top of Pino. It creates a singleton logger instance configured through Verdaccio's configuration.
Installation
npm install @verdaccio/loggerUsage
import { logger, setup } from '@verdaccio/logger';
// Initialize the logger with configuration
setup({ type: 'stdout', format: 'pretty', level: 'info' });
// Use the logger instance
logger.info({ pkg: 'my-package' }, 'package published');
logger.warn('something went wrong');
logger.error({ err }, 'fatal error');API
setup(options)- Initializes the Pino logger with Verdaccio configuration options. Returns the singleton logger instance.logger- The initialized Logger instance, available after callingsetup().
Configuration Options
type- Output destination ('stdout','stderr', or a file path)format- Log format ('pretty'for human-readable,'json'for structured)level- Log level ('trace','debug','info','warn','error','fatal')
Donations
Verdaccio 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.
Report a vulnerability
If you want to report a security vulnerability, please follow the steps which we have defined for you in our security policy.
Open Collective Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
Open Collective Backers
Thank you to all our backers! 🙏 [Become a backer]
Special Thanks
Thanks to the following companies to help us to achieve our goals providing free open source licenses.
Contributors
This project exists thanks to all the people who contribute. [Contribute].
FAQ / Contact / Troubleshoot
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.
License
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.


