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

https://github.com/bamlab/pino-garland

A pretty printer for pino structured logging
https://github.com/bamlab/pino-garland

Last synced: about 1 year ago
JSON representation

A pretty printer for pino structured logging

Awesome Lists containing this project

README

          

# Pino Garland

![Logo](./docs/images/pino.png)

## What

Pino Garland is a [Pino](https://github.com/pinojs/pino) transport, that pretty prints logs to the console.
It transforms:

```json
{ "level": 30, "time": 1546300800000, "msg": "hello world", "pid": 1234, "hostname": "localhost", "v": 1 }
```

into

![Screenshot](./docs/images/example.png)

## Installation

```bash
npm install pino-garland
```

## Usage

```js
const pino = require('pino')
const transport = pino.transport({
target: '/absolute/path/to/my-transport.mjs'
})
pino(transport)
```

### Legacy

```bash
pnpm run server | pino-garland
```