mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Add a flag we can use to skip string template calcs in release
This commit is contained in:
7
trace/trace.d.ts
vendored
7
trace/trace.d.ts
vendored
@ -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.
|
||||
|
Reference in New Issue
Block a user