Built motion from commit (unavailable).|2.2.4
[motion2.git] / server / config / logger.js
index d6c6e75..0fcf6fb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc10d=['[%s]\x20[%s]\x20%s\x20-\x20%s','YYYY-MM-DD\x20HH:mm:ss','level','toUpperCase','message','exports','Logger','File','error','%s-%s','info','transports','Console','env','debugLevel','moment','util','path','INFO','log','xcally','%s-%s.log','format'];(function(_0x25a143,_0x65db13){var _0x106e24=function(_0x4dae2d){while(--_0x4dae2d){_0x25a143['push'](_0x25a143['shift']());}};_0x106e24(++_0x65db13);}(_0xc10d,0x17f));var _0xdc10=function(_0x311c35,_0x534915){_0x311c35=_0x311c35-0x0;var _0x5cc50c=_0xc10d[_0x311c35];return _0x5cc50c;};'use strict';var moment=require(_0xdc10('0x0'));var winston=require('winston');var util=require(_0xdc10('0x1'));var path=require(_0xdc10('0x2'));var debugLevel=_0xdc10('0x3');function filename(_0x715e7c,_0x208398){return path['join']('/var',_0xdc10('0x4'),_0xdc10('0x5'),util['format'](_0xdc10('0x6'),_0x715e7c,_0x208398));}function formatter(_0x265ef9,_0xae071c){return util[_0xdc10('0x7')](_0xdc10('0x8'),moment()[_0xdc10('0x7')](_0xdc10('0x9')),_0xae071c[_0xdc10('0xa')][_0xdc10('0xb')](),_0x265ef9,_0xae071c[_0xdc10('0xc')]);}module[_0xdc10('0xd')]=function(_0x514ee2){return new winston[(_0xdc10('0xe'))]({'transports':[new winston['transports'][(_0xdc10('0xf'))]({'name':util['format']('%s-%s',_0x514ee2,_0xdc10('0x10')),'filename':filename(_0x514ee2,_0xdc10('0x10')),'level':'error','json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x5537ae){return formatter(_0x514ee2,_0x5537ae);}}),new winston['transports']['File']({'name':util['format'](_0xdc10('0x11'),_0x514ee2,_0xdc10('0x12')),'filename':filename(_0x514ee2,_0xdc10('0x12')),'level':_0xdc10('0x12'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x479452){return formatter(_0x514ee2,_0x479452);}}),new winston[(_0xdc10('0x13'))][(_0xdc10('0x14'))]({'level':process[_0xdc10('0x15')][_0xdc10('0x16')]||debugLevel,'json':![],'formatter':function(_0x4128bd){return formatter(_0x514ee2,_0x4128bd);}})]});};
\ No newline at end of file
+var _0x7f29=['[%s]\x20[%s]\x20%s\x20-\x20%s','level','toUpperCase','message','exports','Logger','transports','error','File','%s-%s','info','debugLevel','winston','util','path','INFO','join','/var','log','xcally','%s-%s.log','format'];(function(_0x59085e,_0x2671a6){var _0xf17991=function(_0x25cd27){while(--_0x25cd27){_0x59085e['push'](_0x59085e['shift']());}};_0xf17991(++_0x2671a6);}(_0x7f29,0x12a));var _0x97f2=function(_0x3ca7a5,_0x189ee2){_0x3ca7a5=_0x3ca7a5-0x0;var _0x346822=_0x7f29[_0x3ca7a5];return _0x346822;};'use strict';var moment=require('moment');var winston=require(_0x97f2('0x0'));var util=require(_0x97f2('0x1'));var path=require(_0x97f2('0x2'));var debugLevel=_0x97f2('0x3');function filename(_0x1bce0f,_0x57cd26){return path[_0x97f2('0x4')](_0x97f2('0x5'),_0x97f2('0x6'),_0x97f2('0x7'),util['format'](_0x97f2('0x8'),_0x1bce0f,_0x57cd26));}function formatter(_0x511356,_0x27ee85){return util[_0x97f2('0x9')](_0x97f2('0xa'),moment()[_0x97f2('0x9')]('YYYY-MM-DD\x20HH:mm:ss'),_0x27ee85[_0x97f2('0xb')][_0x97f2('0xc')](),_0x511356,_0x27ee85[_0x97f2('0xd')]);}module[_0x97f2('0xe')]=function(_0x2d2ac9){return new winston[(_0x97f2('0xf'))]({'transports':[new winston[(_0x97f2('0x10'))]['File']({'name':util[_0x97f2('0x9')]('%s-%s',_0x2d2ac9,_0x97f2('0x11')),'filename':filename(_0x2d2ac9,_0x97f2('0x11')),'level':_0x97f2('0x11'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x45353a){return formatter(_0x2d2ac9,_0x45353a);}}),new winston[(_0x97f2('0x10'))][(_0x97f2('0x12'))]({'name':util['format'](_0x97f2('0x13'),_0x2d2ac9,'info'),'filename':filename(_0x2d2ac9,'info'),'level':_0x97f2('0x14'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x1a3dde){return formatter(_0x2d2ac9,_0x1a3dde);}}),new winston[(_0x97f2('0x10'))]['Console']({'level':process['env'][_0x97f2('0x15')]||debugLevel,'json':![],'formatter':function(_0x500298){return formatter(_0x2d2ac9,_0x500298);}})]});};
\ No newline at end of file