Built motion from commit da617fac.|2.6.6
[motion2.git] / server / config / logger.js
index da87d6a..cbe06ca 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x67fb=['/var','log','xcally','format','[%s]\x20[%s]\x20%s\x20-\x20%s','YYYY-MM-DD\x20HH:mm:ss','message','exports','transports','File','%s-%s','error','info','env','debugLevel','moment','util','path','INFO','join'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x67fb,0x113));var _0xb67f=function(_0x2d4878,_0x3a0b4f){_0x2d4878=_0x2d4878-0x0;var _0x20c791=_0x67fb[_0x2d4878];return _0x20c791;};'use strict';var moment=require(_0xb67f('0x0'));var winston=require('winston');var util=require(_0xb67f('0x1'));var path=require(_0xb67f('0x2'));var debugLevel=_0xb67f('0x3');function filename(_0x2ff4c9,_0x1260f0){return path[_0xb67f('0x4')](_0xb67f('0x5'),_0xb67f('0x6'),_0xb67f('0x7'),util[_0xb67f('0x8')]('%s-%s.log',_0x2ff4c9,_0x1260f0));}function formatter(_0x360bfa,_0x437c1e){return util[_0xb67f('0x8')](_0xb67f('0x9'),moment()[_0xb67f('0x8')](_0xb67f('0xa')),_0x437c1e['level']['toUpperCase'](),_0x360bfa,_0x437c1e[_0xb67f('0xb')]);}module[_0xb67f('0xc')]=function(_0x2a371c){return new winston['Logger']({'transports':[new winston[(_0xb67f('0xd'))][(_0xb67f('0xe'))]({'name':util[_0xb67f('0x8')](_0xb67f('0xf'),_0x2a371c,_0xb67f('0x10')),'filename':filename(_0x2a371c,_0xb67f('0x10')),'level':_0xb67f('0x10'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x29b0d1){return formatter(_0x2a371c,_0x29b0d1);}}),new winston['transports'][(_0xb67f('0xe'))]({'name':util[_0xb67f('0x8')]('%s-%s',_0x2a371c,_0xb67f('0x11')),'filename':filename(_0x2a371c,_0xb67f('0x11')),'level':_0xb67f('0x11'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x5e5078){return formatter(_0x2a371c,_0x5e5078);}}),new winston[(_0xb67f('0xd'))]['Console']({'level':process[_0xb67f('0x12')][_0xb67f('0x13')]||debugLevel,'json':![],'formatter':function(_0x39cb08){return formatter(_0x2a371c,_0x39cb08);}})]});};
\ No newline at end of file
+var _0x05b2=['fileLogger','exports','../utils/loggers'];(function(_0x201a0e,_0x1463c9){var _0x4e3225=function(_0x27247a){while(--_0x27247a){_0x201a0e['push'](_0x201a0e['shift']());}};_0x4e3225(++_0x1463c9);}(_0x05b2,0x13d));var _0x205b=function(_0x432bc9,_0xf2146c){_0x432bc9=_0x432bc9-0x0;var _0x69a3ad=_0x05b2[_0x432bc9];return _0x69a3ad;};'use strict';var fileLogger=require(_0x205b('0x0'))[_0x205b('0x1')];module[_0x205b('0x2')]=fileLogger;
\ No newline at end of file