Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / config / logger.js
index 5e49c70..6ddc3ac 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9792=['winston','util','INFO','log','format','%s-%s.log','message','replace','{{{','}}}','YYYY-MM-DD\x20HH:mm:ss','level','toUpperCase','exports','Logger','transports','error','File','%s-%s','info','Console','env','debugLevel','moment'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x9792,0x8f));var _0x2979=function(_0x40a045,_0x516f0e){_0x40a045=_0x40a045-0x0;var _0x1a687c=_0x9792[_0x40a045];return _0x1a687c;};'use strict';var moment=require(_0x2979('0x0'));var winston=require(_0x2979('0x1'));var util=require(_0x2979('0x2'));var path=require('path');var debugLevel=_0x2979('0x3');function filename(_0xcf042b,_0x18734e){return path['join']('/var',_0x2979('0x4'),'xcally',util[_0x2979('0x5')](_0x2979('0x6'),_0xcf042b,_0x18734e));}function formatter(_0x408048,_0x1cfef0){_0x1cfef0[_0x2979('0x7')]=_0x1cfef0[_0x2979('0x7')][_0x2979('0x8')](/@@{/g,_0x2979('0x9'))[_0x2979('0x8')](/}@@/g,_0x2979('0xa'))[_0x2979('0x8')](/@{/g,'{{')[_0x2979('0x8')](/}@/g,'}}');return util[_0x2979('0x5')]('[%s]\x20[%s]\x20%s\x20-\x20%s',moment()['format'](_0x2979('0xb')),_0x1cfef0[_0x2979('0xc')][_0x2979('0xd')](),_0x408048,_0x1cfef0[_0x2979('0x7')]);}module[_0x2979('0xe')]=function(_0x1b16bc){return new winston[(_0x2979('0xf'))]({'transports':[new winston[(_0x2979('0x10'))]['File']({'name':util[_0x2979('0x5')]('%s-%s',_0x1b16bc,'error'),'filename':filename(_0x1b16bc,_0x2979('0x11')),'level':_0x2979('0x11'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x1ac5b0){return formatter(_0x1b16bc,_0x1ac5b0);}}),new winston['transports'][(_0x2979('0x12'))]({'name':util[_0x2979('0x5')](_0x2979('0x13'),_0x1b16bc,'info'),'filename':filename(_0x1b16bc,'info'),'level':_0x2979('0x14'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x59500c){return formatter(_0x1b16bc,_0x59500c);}}),new winston[(_0x2979('0x10'))][(_0x2979('0x15'))]({'level':process[_0x2979('0x16')][_0x2979('0x17')]||debugLevel,'json':![],'formatter':function(_0x321956){return formatter(_0x1b16bc,_0x321956);}})]});};
\ 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