Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / config / logger.js
index 33d6469..6ddc3ac 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x231f=['Console','env','debugLevel','moment','path','INFO','join','/var','xcally','format','message','replace','{{{','[%s]\x20[%s]\x20%s\x20-\x20%s','YYYY-MM-DD\x20HH:mm:ss','level','toUpperCase','exports','Logger','File','%s-%s','error','info','transports'];(function(_0x3c4ec9,_0x12cb12){var _0x20d5f3=function(_0x350605){while(--_0x350605){_0x3c4ec9['push'](_0x3c4ec9['shift']());}};_0x20d5f3(++_0x12cb12);}(_0x231f,0x123));var _0xf231=function(_0xaa97d3,_0x43edb1){_0xaa97d3=_0xaa97d3-0x0;var _0x559cb1=_0x231f[_0xaa97d3];return _0x559cb1;};'use strict';var moment=require(_0xf231('0x0'));var winston=require('winston');var util=require('util');var path=require(_0xf231('0x1'));var debugLevel=_0xf231('0x2');function filename(_0x365342,_0x1779d5){return path[_0xf231('0x3')](_0xf231('0x4'),'log',_0xf231('0x5'),util[_0xf231('0x6')]('%s-%s.log',_0x365342,_0x1779d5));}function formatter(_0x29c367,_0x2b5c36){_0x2b5c36[_0xf231('0x7')]=_0x2b5c36['message'][_0xf231('0x8')](/@@{/g,_0xf231('0x9'))[_0xf231('0x8')](/}@@/g,'}}}')[_0xf231('0x8')](/@{/g,'{{')[_0xf231('0x8')](/}@/g,'}}');return util['format'](_0xf231('0xa'),moment()['format'](_0xf231('0xb')),_0x2b5c36[_0xf231('0xc')][_0xf231('0xd')](),_0x29c367,_0x2b5c36[_0xf231('0x7')]);}module[_0xf231('0xe')]=function(_0x58442f){return new winston[(_0xf231('0xf'))]({'transports':[new winston['transports'][(_0xf231('0x10'))]({'name':util[_0xf231('0x6')](_0xf231('0x11'),_0x58442f,_0xf231('0x12')),'filename':filename(_0x58442f,_0xf231('0x12')),'level':'error','json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x1b2de3){return formatter(_0x58442f,_0x1b2de3);}}),new winston['transports'][(_0xf231('0x10'))]({'name':util[_0xf231('0x6')](_0xf231('0x11'),_0x58442f,_0xf231('0x13')),'filename':filename(_0x58442f,'info'),'level':_0xf231('0x13'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x5396eb){return formatter(_0x58442f,_0x5396eb);}}),new winston[(_0xf231('0x14'))][(_0xf231('0x15'))]({'level':process[_0xf231('0x16')][_0xf231('0x17')]||debugLevel,'json':![],'formatter':function(_0x26769e){return formatter(_0x58442f,_0x26769e);}})]});};
\ No newline at end of file
+var _0x8e95=['fileLogger','exports'];(function(_0x1bafbe,_0x3a6025){var _0x5b3bf2=function(_0x8fd996){while(--_0x8fd996){_0x1bafbe['push'](_0x1bafbe['shift']());}};_0x5b3bf2(++_0x3a6025);}(_0x8e95,0x1d0));var _0x58e9=function(_0x3cfd5a,_0x2cf2a3){_0x3cfd5a=_0x3cfd5a-0x0;var _0x5720e0=_0x8e95[_0x3cfd5a];return _0x5720e0;};'use strict';var fileLogger=require('../utils/loggers')[_0x58e9('0x0')];module[_0x58e9('0x1')]=fileLogger;
\ No newline at end of file