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
Properties
isEnabled
isEnabled: boolean
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