Built motion from commit (unavailable).|2.3.1
[motion2.git] / server / config / logger.js
index d3e300d..594e89e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4724=['util','path','INFO','join','log','xcally','format','%s-%s.log','[%s]\x20[%s]\x20%s\x20-\x20%s','YYYY-MM-DD\x20HH:mm:ss','Logger','transports','File','error','%s-%s','info','Console','env','debugLevel','moment','winston'];(function(_0x472f7f,_0x3ad552){var _0x294981=function(_0x38dd1f){while(--_0x38dd1f){_0x472f7f['push'](_0x472f7f['shift']());}};_0x294981(++_0x3ad552);}(_0x4724,0x178));var _0x4472=function(_0x3d8502,_0x5b23b4){_0x3d8502=_0x3d8502-0x0;var _0x2e8073=_0x4724[_0x3d8502];return _0x2e8073;};'use strict';var moment=require(_0x4472('0x0'));var winston=require(_0x4472('0x1'));var util=require(_0x4472('0x2'));var path=require(_0x4472('0x3'));var debugLevel=_0x4472('0x4');function filename(_0x489f2c,_0x5ed358){return path[_0x4472('0x5')]('/var',_0x4472('0x6'),_0x4472('0x7'),util[_0x4472('0x8')](_0x4472('0x9'),_0x489f2c,_0x5ed358));}function formatter(_0x19ba2f,_0x3cf8e5){return util['format'](_0x4472('0xa'),moment()['format'](_0x4472('0xb')),_0x3cf8e5['level']['toUpperCase'](),_0x19ba2f,_0x3cf8e5['message']);}module['exports']=function(_0xcaf536){return new winston[(_0x4472('0xc'))]({'transports':[new winston[(_0x4472('0xd'))][(_0x4472('0xe'))]({'name':util[_0x4472('0x8')]('%s-%s',_0xcaf536,'error'),'filename':filename(_0xcaf536,_0x4472('0xf')),'level':_0x4472('0xf'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x513b80){return formatter(_0xcaf536,_0x513b80);}}),new winston[(_0x4472('0xd'))][(_0x4472('0xe'))]({'name':util[_0x4472('0x8')](_0x4472('0x10'),_0xcaf536,_0x4472('0x11')),'filename':filename(_0xcaf536,'info'),'level':'info','json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x150b52){return formatter(_0xcaf536,_0x150b52);}}),new winston[(_0x4472('0xd'))][(_0x4472('0x12'))]({'level':process[_0x4472('0x13')][_0x4472('0x14')]||debugLevel,'json':![],'formatter':function(_0x9b165a){return formatter(_0xcaf536,_0x9b165a);}})]});};
\ No newline at end of file
+var _0x7582=['info','env','debugLevel','moment','winston','join','log','format','%s-%s.log','YYYY-MM-DD\x20HH:mm:ss','message','exports','File','%s-%s','error','transports'];(function(_0x21de89,_0x367053){var _0x290b7e=function(_0x540704){while(--_0x540704){_0x21de89['push'](_0x21de89['shift']());}};_0x290b7e(++_0x367053);}(_0x7582,0xe3));var _0x2758=function(_0x4b4638,_0xe99cda){_0x4b4638=_0x4b4638-0x0;var _0x59e92b=_0x7582[_0x4b4638];return _0x59e92b;};'use strict';var moment=require(_0x2758('0x0'));var winston=require(_0x2758('0x1'));var util=require('util');var path=require('path');var debugLevel='INFO';function filename(_0x2e7b66,_0x438eb4){return path[_0x2758('0x2')]('/var',_0x2758('0x3'),'xcally',util[_0x2758('0x4')](_0x2758('0x5'),_0x2e7b66,_0x438eb4));}function formatter(_0x3e6945,_0x3a8e2c){return util[_0x2758('0x4')]('[%s]\x20[%s]\x20%s\x20-\x20%s',moment()[_0x2758('0x4')](_0x2758('0x6')),_0x3a8e2c['level']['toUpperCase'](),_0x3e6945,_0x3a8e2c[_0x2758('0x7')]);}module[_0x2758('0x8')]=function(_0x383934){return new winston['Logger']({'transports':[new winston['transports'][(_0x2758('0x9'))]({'name':util[_0x2758('0x4')](_0x2758('0xa'),_0x383934,'error'),'filename':filename(_0x383934,_0x2758('0xb')),'level':'error','json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x11de0c){return formatter(_0x383934,_0x11de0c);}}),new winston[(_0x2758('0xc'))][(_0x2758('0x9'))]({'name':util[_0x2758('0x4')]('%s-%s',_0x383934,'info'),'filename':filename(_0x383934,_0x2758('0xd')),'level':_0x2758('0xd'),'json':![],'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'formatter':function(_0x1e81fe){return formatter(_0x383934,_0x1e81fe);}}),new winston['transports']['Console']({'level':process[_0x2758('0xe')][_0x2758('0xf')]||debugLevel,'json':![],'formatter':function(_0x11a75b){return formatter(_0x383934,_0x11a75b);}})]});};
\ No newline at end of file