An open API service indexing awesome lists of open source software.

https://github.com/pnpm/logger

Logger for pnpm
https://github.com/pnpm/logger

Last synced: 2 months ago
JSON representation

Logger for pnpm

Awesome Lists containing this project

README

        

# @pnpm/logger

> Logger for pnpm

[![npm version](https://img.shields.io/npm/v/@pnpm/logger.svg)](https://www.npmjs.com/package/@pnpm/logger) [![Build Status](https://img.shields.io/travis/pnpm/logger/master.svg)](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/)