Add a flag we can use to skip string template calcs in release

This commit is contained in:
Panayot Cankov
2016-05-17 15:36:33 +03:00
parent 114f8b47ae
commit eda260323e
42 changed files with 705 additions and 238 deletions

7
trace/trace.d.ts vendored
View File

@ -11,6 +11,13 @@ declare module "trace" {
* Disables the trace module.
*/
export function disable(): void;
/**
* A field that indicates if the tracer is enabled and there is a point in writing messages.
* Check this to avoid writing complex string templates.
* Send error messages should even if tracing is disabled.
*/
export var enabled: boolean;
/**
* Adds a TraceWriter instance to the trace module.