diff options
author | eric thul <thul.eric@gmail.com> | 2016-02-27 20:15:10 -0500 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2016-02-27 20:15:10 -0500 |
commit | 3afbe2fddcc38ba6d79b01409f57158a217c00dd (patch) | |
tree | 7fbfb8f3bf11a3f3b5fbff95e58acdb8a6724627 /src/PursLoader/Debug.js | |
parent | 861ae3407e82b2ef0fd08f6d4ff7f2b0df0b3ed7 (diff) | |
download | purs-loader-3afbe2fddcc38ba6d79b01409f57158a217c00dd.tar.gz purs-loader-3afbe2fddcc38ba6d79b01409f57158a217c00dd.tar.zst purs-loader-3afbe2fddcc38ba6d79b01409f57158a217c00dd.zip |
Adding debug logging
Diffstat (limited to 'src/PursLoader/Debug.js')
-rw-r--r-- | src/PursLoader/Debug.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/PursLoader/Debug.js b/src/PursLoader/Debug.js new file mode 100644 index 0000000..85eca10 --- /dev/null +++ b/src/PursLoader/Debug.js | |||
@@ -0,0 +1,12 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | // module PursLoader.Debug | ||
4 | |||
5 | var debug_ = require('debug')('purs-loader'); | ||
6 | |||
7 | function debug(message) { | ||
8 | return function(){ | ||
9 | debug_(message); | ||
10 | }; | ||
11 | } | ||
12 | exports.debug = debug; | ||