console trace
tarce your function. calc the case time.
when you have cluster process. you can use mter to split the log view.
usage
// test/demo1.ts;registerClassDebugA, 'A'; ;a.say'qaq';
The log is not output by default. You need to configure environment variables:TRACE
or CONSOLE_PRO_TRACE
.
for example:
# in unix TRACE='*' node your-app.js # in windows cmd set TRACE="*"node your-app.js # in windows powershell $env:TRACE="*"node your-app.js
now, run the demo1.ts
:
TRACE=* ts-node test/demo1.ts
PS:the
console
instance is from console-pro.
TRACE
about the example 1
registerClassDebugA, 'A';registerClassDebugB, 'B';
TRACE="A,B"
example 2
registerClassDebugA, 'my/A';registerClassDebugB, 'my/B';
TRACE="my/*"
extends config
you can define static function getUnDebugMethodNames
for class to skip debug some function.
debug an object
;registerInstanceDebug, 'my/simple/instance';