Built motion from commit d127c62.|0.0.151
[motion.git] / server / config / logger.js
index 4504e7e..ba25c6e 100644 (file)
@@ -1 +1 @@
-var _0x9f96=["\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(_0x9f96[0]);var path=require(_0x9f96[1]);var config=require(_0x9f96[2]);winston[_0x9f96[3]]=true;var debug= new winston.Logger({transports:[ new winston[_0x9f96[5]].Console({level:_0x9f96[4],handleExceptions:true,json:false,colorize:true})]});if(config[_0x9f96[7]][_0x9f96[6]]){debug[_0x9f96[9]](winston[_0x9f96[5]].File,{name:_0x9f96[8],level:_0x9f96[4],filename:config[_0x9f96[7]][_0x9f96[4]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false})};var info= new winston.Logger({transports:[ new winston[_0x9f96[5]].File({name:_0x9f96[10],level:_0x9f96[11],filename:config[_0x9f96[7]][_0x9f96[11]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x9f96[5]].Console({level:_0x9f96[11],handleExceptions:true,json:false,colorize:true})]});var warn= new winston.Logger({transports:[ new winston[_0x9f96[5]].File({name:_0x9f96[12],level:_0x9f96[13],filename:config[_0x9f96[7]][_0x9f96[13]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x9f96[5]].Console({level:_0x9f96[13],handleExceptions:true,json:false,colorize:true})]});var error= new winston.Logger({transports:[ new winston[_0x9f96[5]].File({name:_0x9f96[14],level:_0x9f96[15],filename:config[_0x9f96[7]][_0x9f96[15]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x9f96[5]].Console({level:_0x9f96[15],handleExceptions:true,json:false,colorize:true})]});var loggers={debug:function(_0x90adx9,_0x90adxa){debug[_0x9f96[4]](_0x90adx9,_0x90adxa)},info:function(_0x90adx9,_0x90adxa){info[_0x9f96[11]](_0x90adx9,_0x90adxa)},warn:function(_0x90adx9,_0x90adxa){warn[_0x9f96[13]](_0x90adx9,_0x90adxa)},error:function(_0x90adx9,_0x90adxa){error[_0x9f96[15]](_0x90adx9,_0x90adxa)},log:function(_0x90adxb,_0x90adx9,_0x90adxa){var _0x90adxc=exports[_0x90adxb];_0x90adxc(_0x90adx9,_0x90adxa)}};module[_0x9f96[16]]=loggers;module[_0x9f96[16]][_0x9f96[17]]={write:function(_0x90adxd,_0x90adxe){loggers[_0x9f96[11]](_0x90adxd)}}
\ No newline at end of file
+var _0x306a=["\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(_0x306a[0]);var path=require(_0x306a[1]);var config=require(_0x306a[2]);winston[_0x306a[3]]= true;var debug= new winston.Logger({transports:[ new winston[_0x306a[5]].Console({level:_0x306a[4],handleExceptions:true,json:false,colorize:true})]});if(config[_0x306a[7]][_0x306a[6]]){debug[_0x306a[9]](winston[_0x306a[5]].File,{name:_0x306a[8],level:_0x306a[4],filename:config[_0x306a[7]][_0x306a[4]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false})};var info= new winston.Logger({transports:[ new winston[_0x306a[5]].File({name:_0x306a[10],level:_0x306a[11],filename:config[_0x306a[7]][_0x306a[11]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x306a[5]].Console({level:_0x306a[11],handleExceptions:true,json:false,colorize:true})]});var warn= new winston.Logger({transports:[ new winston[_0x306a[5]].File({name:_0x306a[12],level:_0x306a[13],filename:config[_0x306a[7]][_0x306a[13]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x306a[5]].Console({level:_0x306a[13],handleExceptions:true,json:false,colorize:true})]});var error= new winston.Logger({transports:[ new winston[_0x306a[5]].File({name:_0x306a[14],level:_0x306a[15],filename:config[_0x306a[7]][_0x306a[15]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x306a[5]].Console({level:_0x306a[15],handleExceptions:true,json:false,colorize:true})]});var loggers={debug:function(_0xe1d7x9,_0xe1d7xa){debug[_0x306a[4]](_0xe1d7x9,_0xe1d7xa)},info:function(_0xe1d7x9,_0xe1d7xa){info[_0x306a[11]](_0xe1d7x9,_0xe1d7xa)},warn:function(_0xe1d7x9,_0xe1d7xa){warn[_0x306a[13]](_0xe1d7x9,_0xe1d7xa)},error:function(_0xe1d7x9,_0xe1d7xa){error[_0x306a[15]](_0xe1d7x9,_0xe1d7xa)},log:function(_0xe1d7xb,_0xe1d7x9,_0xe1d7xa){var _0xe1d7xc=exports[_0xe1d7xb];_0xe1d7xc(_0xe1d7x9,_0xe1d7xa)}};module[_0x306a[16]]= loggers;module[_0x306a[16]][_0x306a[17]]= {write:function(_0xe1d7xd,_0xe1d7xe){loggers[_0x306a[11]](_0xe1d7xd)}}
\ No newline at end of file