pjscrape v.0.1


Namespace pjs.loggers

Defined in:
pjscrape.js

Logger namespace. You can add new loggers here; new logger classes should probably extend pjs.loggers.base and redefine the log method.


        // create a new logger
        pjs.loggers.myLogger = function() {
            return new pjs.loggers.base(function(msg) { 
                // do some special logging stuff
            });
        };
        // tell pjscrape to use your logger
        pjs.config({
            log: 'myLogger'
        });

Static Fields

Field
pjs.loggers.file :{Logger}
Log to config.logFile
pjs.loggers.none :{Logger}
Disable logging
pjs.loggers.stdout :{Logger}
Log to STDOUT
Namespace Detail
pjs.loggers
Static Field Details
pjs.loggers.file :{Logger}
Log to config.logFile
pjs.loggers.none :{Logger}
Disable logging
pjs.loggers.stdout :{Logger}
Log to STDOUT
©2011 Nick Rabinowitz
Documentation generated by JsDoc Toolkit 2.3.2 on Mon Oct 24 2011 12:16:49 GMT-0700 (PDT)