How to use the levels function from pino

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

67
68
69
70
71
72
73
74
75
76
77
// The limitation of this wrapping is that structured data fields are *not*
// passed on to the custom logger. I.e. this is a fallback mechanism.
class SafePinoDestWrapper {
  constructor (customLogger) {
    this.customLogger = customLogger
    this.logFnNameFromLastLevel = pino.levels.labels
    this[Symbol.for('pino.metadata')] = true
  }


  write (s) {
fork icon1
star icon0
watch icon0