How to use the multistream function from pino

Find comprehensive JavaScript pino.multistream code examples handpicked from public code repositorys.

6
7
8
9
10
11
12
13
14
15
const today = new Date();
const pinoLogger = pino.default(
  {
    level: "debug",
  },
  pino.multistream([
    {
      level: "info",
      stream: pino.transport({
        target: "pino-pretty",
fork icon0
star icon0
watch icon0

57
58
59
60
61
62
63
64
65
66
        return { level: label };
      },
    },
    
  },
  pino.multistream(streams, {
    levels,
    dedupe: true,
  })
);
fork icon0
star icon0
watch icon0

+ 3 other calls in file