FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nativescript-angular/nativescript-angular/trace.ts at 10.0.2 · NativeScript/nativescript-angular · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
NativeScript
/
nativescript-angular
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
240
Star
1.2k
Code
Issues
294
Pull requests
2
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
nativescript-angular
/
nativescript-angular
/
trace.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
65 lines (51 loc) · 1.97 KB
Breadcrumbs
nativescript-angular
/
nativescript-angular
/
trace.ts
Copy path
File metadata and controls
65 lines (51 loc) · 1.97 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import
{
Trace
}
from
'@nativescript/core'
;
export
namespace
NativeScriptDebug
{
export
const
animationsTraceCategory
=
'ns-animations'
;
export
const
rendererTraceCategory
=
'ns-renderer'
;
export
const
viewUtilCategory
=
'ns-view-util'
;
export
const
routerTraceCategory
=
'ns-router'
;
export
const
routeReuseStrategyTraceCategory
=
'ns-route-reuse-strategy'
;
export
const
listViewTraceCategory
=
'ns-list-view'
;
export
const
bootstrapCategory
=
'bootstrap'
;
// TODO: migrate all usage to this - avoids extraneous method executions
export
const
enabled
=
Trace
.
isEnabled
(
)
;
export
function
isLogEnabled
(
)
{
return
Trace
.
isEnabled
(
)
;
}
export
function
animationsLog
(
message
:
string
)
:
void
{
Trace
.
write
(
message
,
animationsTraceCategory
)
;
}
export
function
rendererLog
(
msg
)
:
void
{
Trace
.
write
(
msg
,
rendererTraceCategory
)
;
}
export
function
rendererError
(
message
:
string
)
:
void
{
Trace
.
write
(
message
,
rendererTraceCategory
,
Trace
.
messageType
.
error
)
;
}
export
function
viewUtilLog
(
msg
)
:
void
{
Trace
.
write
(
msg
,
viewUtilCategory
)
;
}
export
function
routerLog
(
message
:
string
)
:
void
{
Trace
.
write
(
message
,
routerTraceCategory
)
;
}
export
function
routerError
(
message
:
string
)
:
void
{
Trace
.
write
(
message
,
routerTraceCategory
,
Trace
.
messageType
.
error
)
;
}
export
function
routeReuseStrategyLog
(
message
:
string
)
:
void
{
Trace
.
write
(
message
,
routeReuseStrategyTraceCategory
)
;
}
export
function
styleError
(
message
:
string
)
:
void
{
Trace
.
write
(
message
,
Trace
.
categories
.
Style
,
Trace
.
messageType
.
error
)
;
}
export
function
listViewLog
(
message
:
string
)
:
void
{
Trace
.
write
(
message
,
listViewTraceCategory
)
;
}
export
function
listViewError
(
message
:
string
)
:
void
{
Trace
.
write
(
message
,
listViewTraceCategory
,
Trace
.
messageType
.
error
)
;
}
export
function
bootstrapLog
(
message
:
string
)
:
void
{
Trace
.
write
(
message
,
bootstrapCategory
)
;
}
export
function
bootstrapLogError
(
message
:
string
)
:
void
{
Trace
.
write
(
message
,
bootstrapCategory
,
Trace
.
messageType
.
error
)
;
}
}
Back
|
FazBrowse Home
|
New Git URL