Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Tracer

Hierarchy

  • Tracer

Index

Constructors

constructor

  • new Tracer(logger: Logger, enabledRpcLog: boolean, source: string, remote: string, msg: string | any, id?: string, seq?: number): Tracer
  • Parameters

    • logger: Logger
    • enabledRpcLog: boolean
    • source: string
    • remote: string
    • msg: string | any
    • Optional id: string
    • Optional seq: number

    Returns Tracer

Properties

id

id: string

isEnabled

isEnabled: boolean

logger

logger: any

msg

msg: string | any

remote

remote: string

seq

seq: number

source

source: string

Methods

debug

  • debug(role: string, module: string, method: string, des: string): void
  • Parameters

    • role: string
    • module: string
    • method: string
    • des: string

    Returns void

error

  • error(role: string, module: string, method: string, des: string): void
  • Parameters

    • role: string
    • module: string
    • method: string
    • des: string

    Returns void

getLogger

  • getLogger(role: string, module: string, method: string, des: string): object
  • Parameters

    • role: string
    • module: string
    • method: string
    • des: string

    Returns object

    • args: string | object
    • description: string
    • method: string
    • module: string
    • remote: string
    • role: string
    • seq: number
    • source: string
    • timestamp: number
    • traceId: string

info

  • info(role: string, module: string, method: string, des: string): void
  • Parameters

    • role: string
    • module: string
    • method: string
    • des: string

    Returns void