FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-debuglog/debuglog.js at master · sam-github/node-debuglog · GitHub
This repository was archived by the owner on May 27, 2022. It is now read-only.
sam-github
node-debuglog
Repository navigation
Code
Issues
1
(1)
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
node-debuglog
/
debuglog.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (19 loc) · 554 Bytes
Breadcrumbs
node-debuglog
/
debuglog.js
Copy path
File metadata and controls
22 lines (19 loc) · 554 Bytes
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
var
util
=
require
(
'util'
)
;
module
.
exports
=
(
util
&&
util
.
debuglog
)
||
debuglog
;
var
debugs
=
{
}
;
var
debugEnviron
=
process
.
env
.
NODE_DEBUG
||
''
;
function
debuglog
(
set
)
{
set
=
set
.
toUpperCase
(
)
;
if
(
!
debugs
[
set
]
)
{
if
(
new
RegExp
(
'\\b'
+
set
+
'\\b'
,
'i'
)
.
test
(
debugEnviron
)
)
{
var
pid
=
process
.
pid
;
debugs
[
set
]
=
function
(
)
{
var
msg
=
util
.
format
.
apply
(
exports
,
arguments
)
;
console
.
error
(
'%s %d: %s'
,
set
,
pid
,
msg
)
;
}
;
}
else
{
debugs
[
set
]
=
function
(
)
{
}
;
}
}
return
debugs
[
set
]
;
}
;
Back
|
FazBrowse Home
|
New Git URL