Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / config / logger.js
index b932b26..5bd4ae8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb028=['level','exports','Logger','transports','%s-%s','error','File','info','Console','env','moment','winston','util','path','INFO','join','/var','log','xcally','%s-%s.log','message','replace','{{{','}}}','format','[%s]\x20[%s]\x20%s\x20-\x20%s','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x3e6d5d,_0x264c7a){var _0x238923=function(_0x201b19){while(--_0x201b19){_0x3e6d5d['push'](_0x3e6d5d['shift']());}};_0x238923(++_0x264c7a);}(_0xb028,0x14e));var _0x8b02=function(_0x44ede8,_0x4e1b37){_0x44ede8=_0x44ede8-0x0;var _0x12fa9d=_0xb028[_0x44ede8];return _0x12fa9d;};'use strict';var moment=require(_0x8b02('0x0'));var winston=require(_0x8b02('0x1'));var util=require(_0x8b02('0x2'));var path=require(_0x8b02('0x3'));var debugLevel=_0x8b02('0x4');function filename(_0x5490eb,_0x5ebaec){return path[_0x8b02('0x5')](_0x8b02('0x6'),_0x8b02('0x7'),_0x8b02('0x8'),util['format'](_0x8b02('0x9'),_0x5490eb,_0x5ebaec));}function formatter(_0x45683f,_0x16600f){_0x16600f['message']=_0x16600f[_0x8b02('0xa')][_0x8b02('0xb')](/@@{/g,_0x8b02('0xc'))[_0x8b02('0xb')](/}@@/g,_0x8b02('0xd'))[_0x8b02('0xb')](/@{/g,'{{')['replace'](/}@/g,'}}');return util[_0x8b02('0xe')](_0x8b02('0xf'),moment()[_0x8b02('0xe')](_0x8b02('0x10')),_0x16600f[_0x8b02('0x11')]['toUpperCase'](),_0x45683f,_0x16600f[_0x8b02('0xa')]);}module[_0x8b02('0x12')]=function(_0x3b8431){return new winston[(_0x8b02('0x13'))]({'transports':[new winston[(_0x8b02('0x14'))]['File']({'name':util[_0x8b02('0xe')](_0x8b02('0x15'),_0x3b8431,_0x8b02('0x16')),'filename':filename(_0x3b8431,_0x8b02('0x16')),'level':_0x8b02('0x16'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x567b42){return formatter(_0x3b8431,_0x567b42);}}),new winston['transports'][(_0x8b02('0x17'))]({'name':util['format'](_0x8b02('0x15'),_0x3b8431,'info'),'filename':filename(_0x3b8431,_0x8b02('0x18')),'level':_0x8b02('0x18'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x45bd30){return formatter(_0x3b8431,_0x45bd30);}}),new winston[(_0x8b02('0x14'))][(_0x8b02('0x19'))]({'level':process[_0x8b02('0x1a')]['debugLevel']||debugLevel,'json':![],'formatter':function(_0x55fc85){return formatter(_0x3b8431,_0x55fc85);}})]});};
\ No newline at end of file
+var _0x9bb1=['{{{','}}}','replace','level','toUpperCase','Logger','transports','File','%s-%s','error','info','Console','env','moment','winston','util','/var','log','xcally','format','%s-%s.log','message'];(function(_0x2865c9,_0x4bfeb6){var _0x4cf486=function(_0x527056){while(--_0x527056){_0x2865c9['push'](_0x2865c9['shift']());}};_0x4cf486(++_0x4bfeb6);}(_0x9bb1,0xe9));var _0x19bb=function(_0x5278d3,_0x17253e){_0x5278d3=_0x5278d3-0x0;var _0x1e3c04=_0x9bb1[_0x5278d3];return _0x1e3c04;};'use strict';var moment=require(_0x19bb('0x0'));var winston=require(_0x19bb('0x1'));var util=require(_0x19bb('0x2'));var path=require('path');var debugLevel='INFO';function filename(_0x261e80,_0xdafd03){return path['join'](_0x19bb('0x3'),_0x19bb('0x4'),_0x19bb('0x5'),util[_0x19bb('0x6')](_0x19bb('0x7'),_0x261e80,_0xdafd03));}function formatter(_0x158139,_0x3ab6d4){_0x3ab6d4[_0x19bb('0x8')]=_0x3ab6d4[_0x19bb('0x8')]['replace'](/@@{/g,_0x19bb('0x9'))['replace'](/}@@/g,_0x19bb('0xa'))['replace'](/@{/g,'{{')[_0x19bb('0xb')](/}@/g,'}}');return util[_0x19bb('0x6')]('[%s]\x20[%s]\x20%s\x20-\x20%s',moment()[_0x19bb('0x6')]('YYYY-MM-DD\x20HH:mm:ss'),_0x3ab6d4[_0x19bb('0xc')][_0x19bb('0xd')](),_0x158139,_0x3ab6d4[_0x19bb('0x8')]);}module['exports']=function(_0x484b30){return new winston[(_0x19bb('0xe'))]({'transports':[new winston[(_0x19bb('0xf'))][(_0x19bb('0x10'))]({'name':util['format'](_0x19bb('0x11'),_0x484b30,_0x19bb('0x12')),'filename':filename(_0x484b30,_0x19bb('0x12')),'level':'error','json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x586e10){return formatter(_0x484b30,_0x586e10);}}),new winston[(_0x19bb('0xf'))][(_0x19bb('0x10'))]({'name':util[_0x19bb('0x6')](_0x19bb('0x11'),_0x484b30,_0x19bb('0x13')),'filename':filename(_0x484b30,_0x19bb('0x13')),'level':_0x19bb('0x13'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x247f80){return formatter(_0x484b30,_0x247f80);}}),new winston[(_0x19bb('0xf'))][(_0x19bb('0x14'))]({'level':process[_0x19bb('0x15')]['debugLevel']||debugLevel,'json':![],'formatter':function(_0x1199ca){return formatter(_0x484b30,_0x1199ca);}})]});};
\ No newline at end of file