UNPKG
@freik/logger
Version:
latest (0.4.10)
0.4.10
0.4.9
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.3.1
0.3.0
0.2.25
0.2.24
0.2.22
0.2.21
0.2.20
0.2.19
0.2.18
0.2.17
0.2.16
0.2.15
0.2.14
0.2.12
0.2.11
0.2.10
0.2.9
0.2.7
0.2.6
0.2.3
0.2.0
0.1.0
A simple (typed!) wrapper around 'debug'
github.com/kevinfrei/packages
kevinfrei/packages
@freik/logger
/
lib
/
esm
/
index.js
2 lines
(1 loc)
•
191 B
JavaScript
View Raw
1
2
import
D
from
"debug"
;
function
G
(
q
){
let
E=
D
(q+
":log"
),j=
D
(q+
":warn"
),z=
console
.
error
,C=
console
.
log
;
return
j.
enabled
=!
0
,{
log
:E,
wrn
:j,
err
:z,
con
:C,
error
:z,
console
:C,
warn
:j}}
export
{G
as
MakeLog
};