https://github.com/pnpm/logger
Logger for pnpm
https://github.com/pnpm/logger
Last synced: 2 months ago
JSON representation
Logger for pnpm
- Host: GitHub
- URL: https://github.com/pnpm/logger
- Owner: pnpm
- License: mit
- Created: 2017-01-14T17:57:40.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-08-07T09:22:29.000Z (11 months ago)
- Last Synced: 2024-10-30T00:54:51.919Z (8 months ago)
- Language: TypeScript
- Homepage:
- Size: 706 KB
- Stars: 3
- Watchers: 4
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @pnpm/logger
> Logger for pnpm
[](https://www.npmjs.com/package/@pnpm/logger) [](https://travis-ci.org/pnpm/logger)
## Installation
```sh
add @pnpm/logger
```## Usage
`@pnpm/logger` is mostly just a wrapper over [bole](https://www.npmjs.com/package/bole).
Logging is done the same way as in bole. To listed for logs, use `streamParser` or create
a new parser with `createStreamParser()`.```typescript
import logger, {streamParser} from '@pnpm/logger'logger.debug({ foo: 'bar' })
streamParser.on('data', msg => {
// ...
})
```## License
[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io/)