Skip to content

Instantly share code, notes, and snippets.

View fernandocanizo's full-sized avatar
馃巸
Working from home

Fernando Lucio Canizo fernandocanizo

馃巸
Working from home
View GitHub Profile
@fernandocanizo
fernandocanizo / logger.js
Created October 7, 2015 13:28 — forked from CootCraig/logger.js
PhantomJs logger, logs to file and console.
// logger = require('logger');
// logger.log_to_console(true);
// logger.log_to_folder('log','_app.log');
// logger.set_log_level('DEBUG');
// logger.info('Happy to be here.');
exports.logger = (function() {
var that = {};
that.levels = {
"TRACE": 0,
"DEBUG": 1,