Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / config / logger.js
index 9dc3201..e364531 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x901c=['moment','path','INFO','join','/var','log','xcally','message','{{{','replace','}}}','[%s]\x20[%s]\x20%s\x20-\x20%s','format','YYYY-MM-DD\x20HH:mm:ss','level','toUpperCase','exports','transports','%s-%s','File','info','env','debugLevel'];(function(_0x59ee6f,_0x450239){var _0x4c0979=function(_0x565e92){while(--_0x565e92){_0x59ee6f['push'](_0x59ee6f['shift']());}};_0x4c0979(++_0x450239);}(_0x901c,0xb8));var _0xc901=function(_0xa0ad9c,_0x1f22a3){_0xa0ad9c=_0xa0ad9c-0x0;var _0x2bd82f=_0x901c[_0xa0ad9c];return _0x2bd82f;};'use strict';var moment=require(_0xc901('0x0'));var winston=require('winston');var util=require('util');var path=require(_0xc901('0x1'));var debugLevel=_0xc901('0x2');function filename(_0x506e8f,_0x2a7d59){return path[_0xc901('0x3')](_0xc901('0x4'),_0xc901('0x5'),_0xc901('0x6'),util['format']('%s-%s.log',_0x506e8f,_0x2a7d59));}function formatter(_0x5eba86,_0x1eb47e){_0x1eb47e['message']=_0x1eb47e[_0xc901('0x7')]['replace'](/@@{/g,_0xc901('0x8'))[_0xc901('0x9')](/}@@/g,_0xc901('0xa'))['replace'](/@{/g,'{{')[_0xc901('0x9')](/}@/g,'}}');return util['format'](_0xc901('0xb'),moment()[_0xc901('0xc')](_0xc901('0xd')),_0x1eb47e[_0xc901('0xe')][_0xc901('0xf')](),_0x5eba86,_0x1eb47e[_0xc901('0x7')]);}module[_0xc901('0x10')]=function(_0x488d9d){return new winston['Logger']({'transports':[new winston[(_0xc901('0x11'))]['File']({'name':util[_0xc901('0xc')](_0xc901('0x12'),_0x488d9d,'error'),'filename':filename(_0x488d9d,'error'),'level':'error','json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x477041){return formatter(_0x488d9d,_0x477041);}}),new winston[(_0xc901('0x11'))][(_0xc901('0x13'))]({'name':util[_0xc901('0xc')](_0xc901('0x12'),_0x488d9d,_0xc901('0x14')),'filename':filename(_0x488d9d,_0xc901('0x14')),'level':_0xc901('0x14'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x3fdf89){return formatter(_0x488d9d,_0x3fdf89);}}),new winston['transports']['Console']({'level':process[_0xc901('0x15')][_0xc901('0x16')]||debugLevel,'json':![],'formatter':function(_0x1d55b4){return formatter(_0x488d9d,_0x1d55b4);}})]});};
\ No newline at end of file
+var _0x2666=['fileLogger','exports','../utils/loggers'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x2666,0xe6));var _0x6266=function(_0x43269b,_0xa49bc){_0x43269b=_0x43269b-0x0;var _0x23c40f=_0x2666[_0x43269b];return _0x23c40f;};'use strict';var fileLogger=require(_0x6266('0x0'))[_0x6266('0x1')];module[_0x6266('0x2')]=fileLogger;
\ No newline at end of file