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

https://github.com/tripolskypetr/pinolog

The preset of pino with rotating-file-stream
https://github.com/tripolskypetr/pinolog

fast gzip-compression json logger nodejs pino rotating-files

Last synced: 7 months ago
JSON representation

The preset of pino with rotating-file-stream

Awesome Lists containing this project

README

          

# pinolog

> The preset of [pino](https://www.npmjs.com/package/pino) with [rotating-file-stream](https://www.npmjs.com/package/rotating-file-stream)

## Usage

The next code will create `logs` folder with `debug.log` file. When the file reach the `100Mb` limit, it will be compressed to `20241003-1132-01-debug.log.gz`.

```tsx
import { logger } from 'pinolog';

logger.log("Hello world")

```