UNPKG
wreck-stats
Version:
latest (1.0.0)
1.0.0
0.0.3
0.0.2
0.0.1
wreck-stats is wreck with a stats logging feature
github.com/samsel/wreck-stats
samsel/wreck-stats
wreck-stats
/
lib
/
logger.js
17 lines
(12 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use strict'
;
// default logger
var
Logger
=
console
.
dir
;
module
.
exports
= {
get
log
() {
return
Logger
; },
set
log
(
logger
) {
console
.
assert
(
typeof
logger ===
'function'
,
'logger should be a callable function.'
);
Logger
= logger; } };