technicallyjosh / pino-http-send

A basic PinoJS http(s) transport with batching!
6 stars 13 forks source link

The option "log: true" do nothing #17

Open vladislav-sevostyanov opened 2 years ago

vladislav-sevostyanov commented 2 years ago

I have set the option "log: true" but I get nothing in stdout.

// my logger code
const pino = require('pino');
const { createWriteStream } = require('pino-http-send');

const stream = createWriteStream({
  url: process.env.LOGS_DESTINATION_URL,
  log: true,
  silent: false,
  timeout: 0,
});

const logger = pino(stream);

module.exports = logger;
bortolottidev commented 2 years ago

True, it actually doesnt work. Btw, you can easily do it with pino multi stream actually