Nestjs Pino Extra Packages - v1.0.0
    Preparing search index...

    Implements

    • PinoMethods
    Index

    Constructors

    • Parameters

      Returns PinoLogger

    Properties

    context: string
    contextName: string
    errorKey: string
    root: Logger

    root is the most root logger that can be used to change params at runtime. Accessible only when useExisting is not set to true in Params. Readonly, but you can change it's properties.

    Accessors

    • get logger(): Logger

      Returns Logger

    Methods

    • Parameters

      • fields: pino.Bindings

      Returns void

    • Parameters

      • method: Level
      • ...args: [msg: string, ...args: any[]] | [obj: object, msg?: string, ...args: any[]]

      Returns void

    • Log at 'debug' level the given msg. If the first argument is an object, all its properties will be included in the JSON line. If more args follows msg, these will be used to format msg using util.format.

      Parameters

      • msg: string
      • ...args: any[]

      Returns void

    • Parameters

      • obj: unknown
      • Optionalmsg: string
      • ...args: any[]

      Returns void

    • Log at 'error' level the given msg. If the first argument is an object, all its properties will be included in the JSON line. If more args follows msg, these will be used to format msg using util.format.

      Parameters

      • msg: string
      • ...args: any[]

      Returns void

    • Parameters

      • obj: unknown
      • Optionalmsg: string
      • ...args: any[]

      Returns void

    • Log at 'fatal' level the given msg. If the first argument is an object, all its properties will be included in the JSON line. If more args follows msg, these will be used to format msg using util.format.

      Parameters

      • msg: string
      • ...args: any[]

      Returns void

    • Parameters

      • obj: unknown
      • Optionalmsg: string
      • ...args: any[]

      Returns void

    • Log at 'info' level the given msg. If the first argument is an object, all its properties will be included in the JSON line. If more args follows msg, these will be used to format msg using util.format.

      Parameters

      • msg: string
      • ...args: any[]

      Returns void

    • Parameters

      • obj: unknown
      • Optionalmsg: string
      • ...args: any[]

      Returns void

    • Parameters

      • value: string

      Returns void

    • Log at 'trace' level the given msg. If the first argument is an object, all its properties will be included in the JSON line. If more args follows msg, these will be used to format msg using util.format.

      Parameters

      • msg: string
      • ...args: any[]

      Returns void

    • Parameters

      • obj: unknown
      • Optionalmsg: string
      • ...args: any[]

      Returns void

    • Log at 'warn' level the given msg. If the first argument is an object, all its properties will be included in the JSON line. If more args follows msg, these will be used to format msg using util.format.

      Parameters

      • msg: string
      • ...args: any[]

      Returns void

    • Parameters

      • obj: unknown
      • Optionalmsg: string
      • ...args: any[]

      Returns void