Built motion from commit b5b971d.|0.0.97
[motion.git] / server / config / logger.js
1 var _0xbca4=["\x77\x69\x6E\x73\x74\x6F\x6E","\x70\x61\x74\x68","\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x65\x6D\x69\x74\x45\x72\x72\x73","\x64\x65\x62\x75\x67","\x74\x72\x61\x6E\x73\x70\x6F\x72\x74\x73","\x64\x65\x62\x75\x67\x54\x6F\x46\x69\x6C\x65","\x6C\x6F\x67\x67\x69\x6E\x67","\x64\x65\x62\x75\x67\x2D\x66\x69\x6C\x65","\x61\x64\x64","\x69\x6E\x66\x6F\x2D\x66\x69\x6C\x65","\x69\x6E\x66\x6F","\x77\x61\x72\x6E\x2D\x66\x69\x6C\x65","\x77\x61\x72\x6E","\x65\x72\x72\x6F\x72\x2D\x66\x69\x6C\x65","\x65\x72\x72\x6F\x72","\x65\x78\x70\x6F\x72\x74\x73","\x73\x74\x72\x65\x61\x6D"];var winston=require(_0xbca4[0]);var path=require(_0xbca4[1]);var config=require(_0xbca4[2]);winston[_0xbca4[3]]=true;var debug= new winston.Logger({transports:[ new winston[_0xbca4[5]].Console({level:_0xbca4[4],handleExceptions:true,json:false,colorize:true})]});if(config[_0xbca4[7]][_0xbca4[6]]){debug[_0xbca4[9]](winston[_0xbca4[5]].File,{name:_0xbca4[8],level:_0xbca4[4],filename:config[_0xbca4[7]][_0xbca4[4]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false})};var info= new winston.Logger({transports:[ new winston[_0xbca4[5]].File({name:_0xbca4[10],level:_0xbca4[11],filename:config[_0xbca4[7]][_0xbca4[11]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0xbca4[5]].Console({level:_0xbca4[11],handleExceptions:true,json:false,colorize:true})]});var warn= new winston.Logger({transports:[ new winston[_0xbca4[5]].File({name:_0xbca4[12],level:_0xbca4[13],filename:config[_0xbca4[7]][_0xbca4[13]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0xbca4[5]].Console({level:_0xbca4[13],handleExceptions:true,json:false,colorize:true})]});var error= new winston.Logger({transports:[ new winston[_0xbca4[5]].File({name:_0xbca4[14],level:_0xbca4[15],filename:config[_0xbca4[7]][_0xbca4[15]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0xbca4[5]].Console({level:_0xbca4[15],handleExceptions:true,json:false,colorize:true})]});var loggers={debug:function(_0xf7a3x9,_0xf7a3xa){debug[_0xbca4[4]](_0xf7a3x9,_0xf7a3xa)},info:function(_0xf7a3x9,_0xf7a3xa){info[_0xbca4[11]](_0xf7a3x9,_0xf7a3xa)},warn:function(_0xf7a3x9,_0xf7a3xa){warn[_0xbca4[13]](_0xf7a3x9,_0xf7a3xa)},error:function(_0xf7a3x9,_0xf7a3xa){error[_0xbca4[15]](_0xf7a3x9,_0xf7a3xa)},log:function(_0xf7a3xb,_0xf7a3x9,_0xf7a3xa){var _0xf7a3xc=exports[_0xf7a3xb];_0xf7a3xc(_0xf7a3x9,_0xf7a3xa)}};module[_0xbca4[16]]=loggers;module[_0xbca4[16]][_0xbca4[17]]={write:function(_0xf7a3xd,_0xf7a3xe){loggers[_0xbca4[11]](_0xf7a3xd)}}