Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / config / logger.js
index 97520cc..bf9709e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6f75=['path','join','/var','log','xcally','message','replace','{{{','format','[%s]\x20[%s]\x20%s\x20-\x20%s','level','Logger','transports','File','%s-%s','error','info','Console','moment','winston','util'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x6f75,0x162));var _0x56f7=function(_0x55af8f,_0x218d84){_0x55af8f=_0x55af8f-0x0;var _0x18e8ef=_0x6f75[_0x55af8f];return _0x18e8ef;};'use strict';var moment=require(_0x56f7('0x0'));var winston=require(_0x56f7('0x1'));var util=require(_0x56f7('0x2'));var path=require(_0x56f7('0x3'));var debugLevel='INFO';function filename(_0x1cbc06,_0x408b35){return path[_0x56f7('0x4')](_0x56f7('0x5'),_0x56f7('0x6'),_0x56f7('0x7'),util['format']('%s-%s.log',_0x1cbc06,_0x408b35));}function formatter(_0x4204c4,_0x25df9f){_0x25df9f['message']=_0x25df9f[_0x56f7('0x8')][_0x56f7('0x9')](/@@{/g,_0x56f7('0xa'))['replace'](/}@@/g,'}}}')[_0x56f7('0x9')](/@{/g,'{{')['replace'](/}@/g,'}}');return util[_0x56f7('0xb')](_0x56f7('0xc'),moment()[_0x56f7('0xb')]('YYYY-MM-DD\x20HH:mm:ss'),_0x25df9f[_0x56f7('0xd')]['toUpperCase'](),_0x4204c4,_0x25df9f[_0x56f7('0x8')]);}module['exports']=function(_0x180551){return new winston[(_0x56f7('0xe'))]({'transports':[new winston[(_0x56f7('0xf'))][(_0x56f7('0x10'))]({'name':util[_0x56f7('0xb')](_0x56f7('0x11'),_0x180551,_0x56f7('0x12')),'filename':filename(_0x180551,_0x56f7('0x12')),'level':'error','json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x467d36){return formatter(_0x180551,_0x467d36);}}),new winston['transports'][(_0x56f7('0x10'))]({'name':util[_0x56f7('0xb')](_0x56f7('0x11'),_0x180551,_0x56f7('0x13')),'filename':filename(_0x180551,'info'),'level':_0x56f7('0x13'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x178507){return formatter(_0x180551,_0x178507);}}),new winston[(_0x56f7('0xf'))][(_0x56f7('0x14'))]({'level':process['env']['debugLevel']||debugLevel,'json':![],'formatter':function(_0x143ebe){return formatter(_0x180551,_0x143ebe);}})]});};
\ No newline at end of file
+var _0xf04d=['../utils/loggers','fileLogger','exports'];(function(_0x40d627,_0x1276e4){var _0x4c3ab7=function(_0x55e71c){while(--_0x55e71c){_0x40d627['push'](_0x40d627['shift']());}};_0x4c3ab7(++_0x1276e4);}(_0xf04d,0x1e0));var _0xdf04=function(_0x4a53d,_0x58a95e){_0x4a53d=_0x4a53d-0x0;var _0x27410e=_0xf04d[_0x4a53d];return _0x27410e;};'use strict';var fileLogger=require(_0xdf04('0x0'))[_0xdf04('0x1')];module[_0xdf04('0x2')]=fileLogger;
\ No newline at end of file