X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fconfig%2Flogger.js;h=29f0b4dbffa6c3433375a2f804fc7ed6a559b426;hb=221ba7c2ffc043570bbad1e8f0d6074fb4ff1fb0;hp=dbb89df46a3e8d95a41527b4c0ffd83852ea79c7;hpb=5d92478b1cb7479f39a43973775a6f6147fba8ac;p=motion.git diff --git a/server/config/logger.js b/server/config/logger.js index dbb89df..29f0b4d 100644 --- a/server/config/logger.js +++ b/server/config/logger.js @@ -1 +1 @@ -var _0x5d59=["\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(_0x5d59[0]);var path=require(_0x5d59[1]);var config=require(_0x5d59[2]);winston[_0x5d59[3]]= true;var debug= new winston.Logger({transports:[ new winston[_0x5d59[5]].Console({level:_0x5d59[4],handleExceptions:true,json:false,colorize:true})]});if(config[_0x5d59[7]][_0x5d59[6]]){debug[_0x5d59[9]](winston[_0x5d59[5]].File,{name:_0x5d59[8],level:_0x5d59[4],filename:config[_0x5d59[7]][_0x5d59[4]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false})};var info= new winston.Logger({transports:[ new winston[_0x5d59[5]].File({name:_0x5d59[10],level:_0x5d59[11],filename:config[_0x5d59[7]][_0x5d59[11]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x5d59[5]].Console({level:_0x5d59[11],handleExceptions:true,json:false,colorize:true})]});var warn= new winston.Logger({transports:[ new winston[_0x5d59[5]].File({name:_0x5d59[12],level:_0x5d59[13],filename:config[_0x5d59[7]][_0x5d59[13]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x5d59[5]].Console({level:_0x5d59[13],handleExceptions:true,json:false,colorize:true})]});var error= new winston.Logger({transports:[ new winston[_0x5d59[5]].File({name:_0x5d59[14],level:_0x5d59[15],filename:config[_0x5d59[7]][_0x5d59[15]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x5d59[5]].Console({level:_0x5d59[15],handleExceptions:true,json:false,colorize:true})]});var loggers={debug:function(_0x3cc5x9,_0x3cc5xa){debug[_0x5d59[4]](_0x3cc5x9,_0x3cc5xa)},info:function(_0x3cc5x9,_0x3cc5xa){info[_0x5d59[11]](_0x3cc5x9,_0x3cc5xa)},warn:function(_0x3cc5x9,_0x3cc5xa){warn[_0x5d59[13]](_0x3cc5x9,_0x3cc5xa)},error:function(_0x3cc5x9,_0x3cc5xa){error[_0x5d59[15]](_0x3cc5x9,_0x3cc5xa)},log:function(_0x3cc5xb,_0x3cc5x9,_0x3cc5xa){var _0x3cc5xc=exports[_0x3cc5xb];_0x3cc5xc(_0x3cc5x9,_0x3cc5xa)}};module[_0x5d59[16]]= loggers;module[_0x5d59[16]][_0x5d59[17]]= {write:function(_0x3cc5xd,_0x3cc5xe){loggers[_0x5d59[11]](_0x3cc5xd)}} \ No newline at end of file +var _0x4065=["\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(_0x4065[0]);var path=require(_0x4065[1]);var config=require(_0x4065[2]);winston[_0x4065[3]]= true;var debug= new winston.Logger({transports:[ new winston[_0x4065[5]].Console({level:_0x4065[4],handleExceptions:true,json:false,colorize:true})]});if(config[_0x4065[7]][_0x4065[6]]){debug[_0x4065[9]](winston[_0x4065[5]].File,{name:_0x4065[8],level:_0x4065[4],filename:config[_0x4065[7]][_0x4065[4]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false})};var info= new winston.Logger({transports:[ new winston[_0x4065[5]].File({name:_0x4065[10],level:_0x4065[11],filename:config[_0x4065[7]][_0x4065[11]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x4065[5]].Console({level:_0x4065[11],handleExceptions:true,json:false,colorize:true})]});var warn= new winston.Logger({transports:[ new winston[_0x4065[5]].File({name:_0x4065[12],level:_0x4065[13],filename:config[_0x4065[7]][_0x4065[13]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x4065[5]].Console({level:_0x4065[13],handleExceptions:true,json:false,colorize:true})]});var error= new winston.Logger({transports:[ new winston[_0x4065[5]].File({name:_0x4065[14],level:_0x4065[15],filename:config[_0x4065[7]][_0x4065[15]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x4065[5]].Console({level:_0x4065[15],handleExceptions:true,json:false,colorize:true})]});var loggers={debug:function(_0xdc3dx9,_0xdc3dxa){debug[_0x4065[4]](_0xdc3dx9,_0xdc3dxa)},info:function(_0xdc3dx9,_0xdc3dxa){info[_0x4065[11]](_0xdc3dx9,_0xdc3dxa)},warn:function(_0xdc3dx9,_0xdc3dxa){warn[_0x4065[13]](_0xdc3dx9,_0xdc3dxa)},error:function(_0xdc3dx9,_0xdc3dxa){error[_0x4065[15]](_0xdc3dx9,_0xdc3dxa)},log:function(_0xdc3dxb,_0xdc3dx9,_0xdc3dxa){var _0xdc3dxc=exports[_0xdc3dxb];_0xdc3dxc(_0xdc3dx9,_0xdc3dxa)}};module[_0x4065[16]]= loggers;module[_0x4065[16]][_0x4065[17]]= {write:function(_0xdc3dxd,_0xdc3dxe){loggers[_0x4065[11]](_0xdc3dxd)}} \ No newline at end of file