Built motion from commit da617fac.|2.6.6
[motion2.git] / server / config / logger.js
index f4b6c88..63b1a46 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3b40=['level','exports','Logger','File','%s-%s','error','transports','info','Console','env','winston','util','path','join','/var','format','%s-%s.log','[%s]\x20[%s]\x20%s\x20-\x20%s','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x598e15,_0x21c9f0){var _0x1aa8e6=function(_0x2581f8){while(--_0x2581f8){_0x598e15['push'](_0x598e15['shift']());}};_0x1aa8e6(++_0x21c9f0);}(_0x3b40,0x101));var _0x03b4=function(_0x1eb444,_0x3f351f){_0x1eb444=_0x1eb444-0x0;var _0x352f34=_0x3b40[_0x1eb444];return _0x352f34;};'use strict';var moment=require('moment');var winston=require(_0x03b4('0x0'));var util=require(_0x03b4('0x1'));var path=require(_0x03b4('0x2'));var debugLevel='INFO';function filename(_0x4615ce,_0x22ab23){return path[_0x03b4('0x3')](_0x03b4('0x4'),'log','xcally',util[_0x03b4('0x5')](_0x03b4('0x6'),_0x4615ce,_0x22ab23));}function formatter(_0x4802eb,_0x2165c7){return util['format'](_0x03b4('0x7'),moment()[_0x03b4('0x5')](_0x03b4('0x8')),_0x2165c7[_0x03b4('0x9')]['toUpperCase'](),_0x4802eb,_0x2165c7['message']);}module[_0x03b4('0xa')]=function(_0x3a1a33){return new winston[(_0x03b4('0xb'))]({'transports':[new winston['transports'][(_0x03b4('0xc'))]({'name':util[_0x03b4('0x5')](_0x03b4('0xd'),_0x3a1a33,_0x03b4('0xe')),'filename':filename(_0x3a1a33,'error'),'level':_0x03b4('0xe'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0xc57586){return formatter(_0x3a1a33,_0xc57586);}}),new winston[(_0x03b4('0xf'))][(_0x03b4('0xc'))]({'name':util[_0x03b4('0x5')](_0x03b4('0xd'),_0x3a1a33,_0x03b4('0x10')),'filename':filename(_0x3a1a33,_0x03b4('0x10')),'level':_0x03b4('0x10'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x947101){return formatter(_0x3a1a33,_0x947101);}}),new winston[(_0x03b4('0xf'))][(_0x03b4('0x11'))]({'level':process[_0x03b4('0x12')]['debugLevel']||debugLevel,'json':![],'formatter':function(_0x152e1c){return formatter(_0x3a1a33,_0x152e1c);}})]});};
\ No newline at end of file
+var _0xc690=['exports','../utils/loggers'];(function(_0x292b9d,_0x123322){var _0x33621e=function(_0x49cd9e){while(--_0x49cd9e){_0x292b9d['push'](_0x292b9d['shift']());}};_0x33621e(++_0x123322);}(_0xc690,0x17b));var _0x0c69=function(_0x9aa306,_0x2f5525){_0x9aa306=_0x9aa306-0x0;var _0x4a471f=_0xc690[_0x9aa306];return _0x4a471f;};'use strict';var fileLogger=require(_0x0c69('0x0'))['fileLogger'];module[_0x0c69('0x1')]=fileLogger;
\ No newline at end of file