How to use the transport function from pino

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

20
21
22
23
24
25
26
27
28
29
    level: config.file.level,
    options: { destination: filePath, mkdir: true }
  });
}

const transport = pino.transport({
  targets,
  options: {
    colorize: config.colorize,
  },
fork icon0
star icon2
watch icon0

9
10
11
12
13
14
15
16
17
18
  level: "debug",
},
pino.multistream([
  {
    level: "info",
    stream: pino.transport({
      target: "pino-pretty",
      options: {
        colorize: true,
        translateTime: "yyyy-mm-dd HH:mm:ss",
fork icon0
star icon0
watch icon0

47
48
49
50
51
52
53
54
55
56
  this.#transportSetupFunctions.push(fileTransportSetup);
};

// Datadog logs transport
#datadogTransportSetup() {
  this.datadogTransport = pino.transport({
    level: 'debug',
    options: { colorize: true }
  },
  pinoDatadog({
fork icon0
star icon0
watch icon0