mirror of
https://github.com/pnpm/pnpm.git
synced 2026-01-27 00:08:53 -05:00
* chore: create @pnpm/logger * fix: workaround typescript error * chore: update manifests * chore(deps): link @pnpm/logger from workspace
587 B
587 B
@pnpm/logger
Logger for pnpm
Installation
pnpm add @pnpm/logger
Usage
@pnpm/logger is mostly just a wrapper over bole.
Logging is done the same way as in bole. To listed for logs, use streamParser or create
a new parser with createStreamParser().
import logger, {streamParser} from '@pnpm/logger'
logger.debug({ foo: 'bar' })
streamParser.on('data', msg => {
// ...
})
License
MIT