Built motion from commit (unavailable).|2.4.21
[motion2.git] / server / config / logger.js
index 070a4bf..93dba76 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x123c=['Console','env','moment','winston','util','/var','xcally','format','%s-%s.log','[%s]\x20[%s]\x20%s\x20-\x20%s','toUpperCase','message','transports','File','error','%s-%s','info'];(function(_0x2141c2,_0x15c6bd){var _0x1c0c29=function(_0x30bfc5){while(--_0x30bfc5){_0x2141c2['push'](_0x2141c2['shift']());}};_0x1c0c29(++_0x15c6bd);}(_0x123c,0xce));var _0xc123=function(_0x28fdc6,_0x1cd3e6){_0x28fdc6=_0x28fdc6-0x0;var _0x2461f7=_0x123c[_0x28fdc6];return _0x2461f7;};'use strict';var moment=require(_0xc123('0x0'));var winston=require(_0xc123('0x1'));var util=require(_0xc123('0x2'));var path=require('path');var debugLevel='INFO';function filename(_0x4fe039,_0x2cf120){return path['join'](_0xc123('0x3'),'log',_0xc123('0x4'),util[_0xc123('0x5')](_0xc123('0x6'),_0x4fe039,_0x2cf120));}function formatter(_0x2abb7d,_0x4da991){return util['format'](_0xc123('0x7'),moment()[_0xc123('0x5')]('YYYY-MM-DD\x20HH:mm:ss'),_0x4da991['level'][_0xc123('0x8')](),_0x2abb7d,_0x4da991[_0xc123('0x9')]);}module['exports']=function(_0x25c675){return new winston['Logger']({'transports':[new winston[(_0xc123('0xa'))][(_0xc123('0xb'))]({'name':util[_0xc123('0x5')]('%s-%s',_0x25c675,_0xc123('0xc')),'filename':filename(_0x25c675,_0xc123('0xc')),'level':_0xc123('0xc'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x1bdaf6){return formatter(_0x25c675,_0x1bdaf6);}}),new winston[(_0xc123('0xa'))][(_0xc123('0xb'))]({'name':util[_0xc123('0x5')](_0xc123('0xd'),_0x25c675,_0xc123('0xe')),'filename':filename(_0x25c675,_0xc123('0xe')),'level':'info','json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x557dcf){return formatter(_0x25c675,_0x557dcf);}}),new winston['transports'][(_0xc123('0xf'))]({'level':process[_0xc123('0x10')]['debugLevel']||debugLevel,'json':![],'formatter':function(_0x4cbc94){return formatter(_0x25c675,_0x4cbc94);}})]});};
\ No newline at end of file
+var _0x5a64=['util','join','/var','log','xcally','format','%s-%s.log','YYYY-MM-DD\x20HH:mm:ss','toUpperCase','message','exports','Logger','transports','File','%s-%s','error','info','Console','env','debugLevel','moment','winston'];(function(_0x39cad6,_0x1edf41){var _0x5a82f2=function(_0x416563){while(--_0x416563){_0x39cad6['push'](_0x39cad6['shift']());}};_0x5a82f2(++_0x1edf41);}(_0x5a64,0x132));var _0x45a6=function(_0x1b2f73,_0x2e5d29){_0x1b2f73=_0x1b2f73-0x0;var _0x459eae=_0x5a64[_0x1b2f73];return _0x459eae;};'use strict';var moment=require(_0x45a6('0x0'));var winston=require(_0x45a6('0x1'));var util=require(_0x45a6('0x2'));var path=require('path');var debugLevel='INFO';function filename(_0x546571,_0x45e343){return path[_0x45a6('0x3')](_0x45a6('0x4'),_0x45a6('0x5'),_0x45a6('0x6'),util[_0x45a6('0x7')](_0x45a6('0x8'),_0x546571,_0x45e343));}function formatter(_0x38d1bf,_0x2de637){return util[_0x45a6('0x7')]('[%s]\x20[%s]\x20%s\x20-\x20%s',moment()['format'](_0x45a6('0x9')),_0x2de637['level'][_0x45a6('0xa')](),_0x38d1bf,_0x2de637[_0x45a6('0xb')]);}module[_0x45a6('0xc')]=function(_0x5e0d38){return new winston[(_0x45a6('0xd'))]({'transports':[new winston[(_0x45a6('0xe'))][(_0x45a6('0xf'))]({'name':util['format'](_0x45a6('0x10'),_0x5e0d38,_0x45a6('0x11')),'filename':filename(_0x5e0d38,_0x45a6('0x11')),'level':_0x45a6('0x11'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x654877){return formatter(_0x5e0d38,_0x654877);}}),new winston['transports'][(_0x45a6('0xf'))]({'name':util[_0x45a6('0x7')](_0x45a6('0x10'),_0x5e0d38,_0x45a6('0x12')),'filename':filename(_0x5e0d38,_0x45a6('0x12')),'level':_0x45a6('0x12'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x2ebd0a){return formatter(_0x5e0d38,_0x2ebd0a);}}),new winston['transports'][(_0x45a6('0x13'))]({'level':process[_0x45a6('0x14')][_0x45a6('0x15')]||debugLevel,'json':![],'formatter':function(_0x31ca37){return formatter(_0x5e0d38,_0x31ca37);}})]});};
\ No newline at end of file