Closed freenetwork closed 6 years ago
var intel = require('intel'); //intel.addHandler(new intel.handlers.File('r.log')); //intel.addHandler(new intel.Formatter('[%(date)s] %(name)s.%(levelname)s: %(message)s'));
intel.config({ formatters: { 'details': { 'format': '[%(date)s] %(name)s.%(levelname)s: %(message)s', 'strip': true } }, handlers: { 'logfile': { 'class': intel.handlers.File, 'file': 'log.log', 'formatter': 'details', } } });
intel.warn('hello');
intel.basicConfig({ 'format': '[%(date)s] %(name)s.%(levelname)s: %(message)s', 'file': 'report.log', });
var intel = require('intel'); //intel.addHandler(new intel.handlers.File('r.log')); //intel.addHandler(new intel.Formatter('[%(date)s] %(name)s.%(levelname)s: %(message)s'));
intel.config({ formatters: { 'details': { 'format': '[%(date)s] %(name)s.%(levelname)s: %(message)s', 'strip': true } }, handlers: { 'logfile': { 'class': intel.handlers.File, 'file': 'log.log', 'formatter': 'details', } } });
intel.warn('hello');