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
- Host: GitHub
- URL: https://github.com/bamlab/pino-garland
- Owner: bamlab
- License: mit
- Created: 2022-12-07T13:07:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-06T12:27:58.000Z (over 3 years ago)
- Last Synced: 2025-05-22T20:12:44.524Z (about 1 year ago)
- Language: TypeScript
- Size: 224 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pino Garland

## 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

## 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
```