Built motion from commit 43538d75.|2.5.35
[motion2.git] / server / config / logger.js
index d982e0f..2509b7e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6f26=['util','path','join','/var','log','%s-%s.log','message','replace','{{{','}}}','format','[%s]\x20[%s]\x20%s\x20-\x20%s','YYYY-MM-DD\x20HH:mm:ss','level','toUpperCase','exports','Logger','transports','File','%s-%s','error','info','env'];(function(_0x36b8a2,_0x1d742f){var _0x1c98c5=function(_0x35ccf4){while(--_0x35ccf4){_0x36b8a2['push'](_0x36b8a2['shift']());}};_0x1c98c5(++_0x1d742f);}(_0x6f26,0x12b));var _0x66f2=function(_0x6cd197,_0x33df63){_0x6cd197=_0x6cd197-0x0;var _0x3480c7=_0x6f26[_0x6cd197];return _0x3480c7;};'use strict';var moment=require('moment');var winston=require('winston');var util=require(_0x66f2('0x0'));var path=require(_0x66f2('0x1'));var debugLevel='INFO';function filename(_0x16aae9,_0x34567e){return path[_0x66f2('0x2')](_0x66f2('0x3'),_0x66f2('0x4'),'xcally',util['format'](_0x66f2('0x5'),_0x16aae9,_0x34567e));}function formatter(_0x15ac8c,_0x2f937e){_0x2f937e[_0x66f2('0x6')]=_0x2f937e['message'][_0x66f2('0x7')](/@@{/g,_0x66f2('0x8'))[_0x66f2('0x7')](/}@@/g,_0x66f2('0x9'))[_0x66f2('0x7')](/@{/g,'{{')['replace'](/}@/g,'}}');return util[_0x66f2('0xa')](_0x66f2('0xb'),moment()['format'](_0x66f2('0xc')),_0x2f937e[_0x66f2('0xd')][_0x66f2('0xe')](),_0x15ac8c,_0x2f937e[_0x66f2('0x6')]);}module[_0x66f2('0xf')]=function(_0x50eeb5){return new winston[(_0x66f2('0x10'))]({'transports':[new winston[(_0x66f2('0x11'))][(_0x66f2('0x12'))]({'name':util[_0x66f2('0xa')](_0x66f2('0x13'),_0x50eeb5,_0x66f2('0x14')),'filename':filename(_0x50eeb5,_0x66f2('0x14')),'level':_0x66f2('0x14'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x5784e0){return formatter(_0x50eeb5,_0x5784e0);}}),new winston['transports'][(_0x66f2('0x12'))]({'name':util[_0x66f2('0xa')](_0x66f2('0x13'),_0x50eeb5,_0x66f2('0x15')),'filename':filename(_0x50eeb5,_0x66f2('0x15')),'level':_0x66f2('0x15'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x8be152){return formatter(_0x50eeb5,_0x8be152);}}),new winston[(_0x66f2('0x11'))]['Console']({'level':process[_0x66f2('0x16')]['debugLevel']||debugLevel,'json':![],'formatter':function(_0x68afb){return formatter(_0x50eeb5,_0x68afb);}})]});};
\ No newline at end of file
+var _0x51a1=['YYYY-MM-DD\x20HH:mm:ss','level','toUpperCase','Logger','transports','File','error','%s-%s','info','Console','env','debugLevel','winston','util','path','INFO','join','/var','xcally','format','%s-%s.log','message','replace','}}}','[%s]\x20[%s]\x20%s\x20-\x20%s'];(function(_0x2bf466,_0x4929a5){var _0x856885=function(_0x102ef1){while(--_0x102ef1){_0x2bf466['push'](_0x2bf466['shift']());}};_0x856885(++_0x4929a5);}(_0x51a1,0x1e7));var _0x151a=function(_0x3d7b69,_0x5560a0){_0x3d7b69=_0x3d7b69-0x0;var _0x275a95=_0x51a1[_0x3d7b69];return _0x275a95;};'use strict';var moment=require('moment');var winston=require(_0x151a('0x0'));var util=require(_0x151a('0x1'));var path=require(_0x151a('0x2'));var debugLevel=_0x151a('0x3');function filename(_0x261925,_0x1d9f94){return path[_0x151a('0x4')](_0x151a('0x5'),'log',_0x151a('0x6'),util[_0x151a('0x7')](_0x151a('0x8'),_0x261925,_0x1d9f94));}function formatter(_0x2b8e3a,_0x13609b){_0x13609b[_0x151a('0x9')]=_0x13609b['message'][_0x151a('0xa')](/@@{/g,'{{{')[_0x151a('0xa')](/}@@/g,_0x151a('0xb'))['replace'](/@{/g,'{{')[_0x151a('0xa')](/}@/g,'}}');return util[_0x151a('0x7')](_0x151a('0xc'),moment()[_0x151a('0x7')](_0x151a('0xd')),_0x13609b[_0x151a('0xe')][_0x151a('0xf')](),_0x2b8e3a,_0x13609b[_0x151a('0x9')]);}module['exports']=function(_0xa44a2){return new winston[(_0x151a('0x10'))]({'transports':[new winston[(_0x151a('0x11'))][(_0x151a('0x12'))]({'name':util[_0x151a('0x7')]('%s-%s',_0xa44a2,_0x151a('0x13')),'filename':filename(_0xa44a2,_0x151a('0x13')),'level':_0x151a('0x13'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x27b0b7){return formatter(_0xa44a2,_0x27b0b7);}}),new winston[(_0x151a('0x11'))][(_0x151a('0x12'))]({'name':util['format'](_0x151a('0x14'),_0xa44a2,_0x151a('0x15')),'filename':filename(_0xa44a2,_0x151a('0x15')),'level':_0x151a('0x15'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x8bf441){return formatter(_0xa44a2,_0x8bf441);}}),new winston[(_0x151a('0x11'))][(_0x151a('0x16'))]({'level':process[_0x151a('0x17')][_0x151a('0x18')]||debugLevel,'json':![],'formatter':function(_0x2d188d){return formatter(_0xa44a2,_0x2d188d);}})]});};
\ No newline at end of file