This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //somewhat reusable module socketlogger - it requires the usage of global.socket | |
| //so it's not passed to every log function. | |
| function SocketLogger() {} | |
| var getLogger = function(categoryName) { | |
| SocketLogger.prototype = log4js.getLogger(categoryName); | |
| ['Trace','Debug','Info','Warn','Error','Fatal', 'Mark'].forEach( | |
| function (levelString) { | |
| var level = log4js.levels.toLevel(levelString); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Q = require('q'); | |
| var debug = require('debug')('test'); | |
| var func1 = function() { | |
| return Q.promise(function(resolve, reject) { | |
| setTimeout(function() { | |
| debug('concurrent func1?'); | |
| resolve(1); | |
| }, 4000); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
NewerOlder