Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / config / logger.js
index ec2eba2..f73f139 100644 (file)
@@ -1 +1 @@
-const a1008_0x3380=['}}}','File',']\x20[','safe-stable-stringify','triple-beam','getConfigService','string','toUpperCase','debugLevel','util','winston','./config.service','replace','transports','info','{{{','error','Console','format','%s-%s','%s-%s.log','createLogger','join'];(function(_0x320f34,_0x2c5698){const _0x3380db=function(_0x362dda){while(--_0x362dda){_0x320f34['push'](_0x320f34['shift']());}};_0x3380db(++_0x2c5698);}(a1008_0x3380,0x1d9));const a1008_0x362d=function(_0x320f34,_0x2c5698){_0x320f34=_0x320f34-0x106;let _0x3380db=a1008_0x3380[_0x320f34];return _0x3380db;};const a1008_0x5b4638=a1008_0x362d;'use strict';const moment=require('moment'),winston=require(a1008_0x5b4638(0x11a)),util=require(a1008_0x5b4638(0x119)),path=require('path'),{MESSAGE}=require(a1008_0x5b4638(0x114)),jsonStringify=require(a1008_0x5b4638(0x113)),cs=require(a1008_0x5b4638(0x11b))[a1008_0x5b4638(0x115)](),logPath=cs['logPath'];function filename(_0x55108a,_0x378966){const _0x1974b0=a1008_0x5b4638;return path[_0x1974b0(0x10f)](logPath,util['format'](_0x1974b0(0x10d),_0x55108a,_0x378966));}const MotionFormatter=_0x2d4a87=>winston[a1008_0x5b4638(0x10b)](_0x3bf18c=>{const _0x18d00a=a1008_0x5b4638,_0x259c2a=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),{level:_0x58edd4,message:_0x3857ff}=_0x3bf18c,_0x8db279=jsonStringify(Object['assign']({},_0x3bf18c,{'level':undefined,'message':undefined,'splat':undefined})),_0x4fffcd=typeof _0x3857ff===_0x18d00a(0x116)?_0x3857ff[_0x18d00a(0x11c)](/@@{/g,_0x18d00a(0x108))['replace'](/}@@/g,_0x18d00a(0x110))[_0x18d00a(0x11c)](/@{/g,'{{')[_0x18d00a(0x11c)](/}@/g,'}}'):'';return _0x3bf18c[MESSAGE]='['+_0x259c2a+_0x18d00a(0x112)+_0x58edd4[_0x18d00a(0x117)]()+']\x20'+_0x2d4a87+'\x20-\x20'+_0x4fffcd+'\x20'+(_0x8db279==='{}'?'':_0x8db279),_0x3bf18c;})();module['exports']=function(_0x2f19df){const _0xfe509a=a1008_0x5b4638;return winston[_0xfe509a(0x10e)]({'transports':[new winston[(_0xfe509a(0x106))][(_0xfe509a(0x111))]({'name':util[_0xfe509a(0x10b)]('%s-%s',_0x2f19df,'error'),'filename':filename(_0x2f19df,'error'),'level':_0xfe509a(0x109),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x2f19df)}),new winston[(_0xfe509a(0x106))][(_0xfe509a(0x111))]({'name':util[_0xfe509a(0x10b)](_0xfe509a(0x10c),_0x2f19df,_0xfe509a(0x107)),'filename':filename(_0x2f19df,'info'),'level':_0xfe509a(0x107),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x2f19df)}),new winston[(_0xfe509a(0x106))][(_0xfe509a(0x10a))]({'level':cs[_0xfe509a(0x118)],'format':MotionFormatter(_0x2f19df)})]});};
\ No newline at end of file
+const a1010_0xa718=['%s-%s.log','getConfigService','YYYY-MM-DD\x20HH:mm:ss','Console','./config.service','}}}','assign','format','\x20-\x20','createLogger','info','moment','path',']\x20[','winston','string','logPath','transports','%s-%s','exports','debugLevel','error','File','replace','{{{','util'];(function(_0x5a81bb,_0x162bf9){const _0xa7181a=function(_0x49b328){while(--_0x49b328){_0x5a81bb['push'](_0x5a81bb['shift']());}};_0xa7181a(++_0x162bf9);}(a1010_0xa718,0xd7));const a1010_0x49b3=function(_0x5a81bb,_0x162bf9){_0x5a81bb=_0x5a81bb-0x7d;let _0xa7181a=a1010_0xa718[_0x5a81bb];return _0xa7181a;};const a1010_0x384f20=a1010_0x49b3;'use strict';const moment=require(a1010_0x384f20(0x81)),winston=require(a1010_0x384f20(0x84)),util=require(a1010_0x384f20(0x8f)),path=require(a1010_0x384f20(0x82)),{MESSAGE}=require('triple-beam'),jsonStringify=require('safe-stable-stringify'),cs=require(a1010_0x384f20(0x94))[a1010_0x384f20(0x91)](),logPath=cs[a1010_0x384f20(0x86)];function filename(_0x54de6a,_0x44078b){const _0x1eb145=a1010_0x384f20;return path['join'](logPath,util[_0x1eb145(0x7d)](_0x1eb145(0x90),_0x54de6a,_0x44078b));}const MotionFormatter=_0x1c0096=>winston[a1010_0x384f20(0x7d)](_0xe90c69=>{const _0xd2f17e=a1010_0x384f20,_0x357bd2=moment()['format'](_0xd2f17e(0x92)),{level:_0x255555,message:_0x1fe2b8}=_0xe90c69,_0x4ff86c=jsonStringify(Object[_0xd2f17e(0x96)]({},_0xe90c69,{'level':undefined,'message':undefined,'splat':undefined})),_0x1800f3=typeof _0x1fe2b8===_0xd2f17e(0x85)?_0x1fe2b8[_0xd2f17e(0x8d)](/@@{/g,_0xd2f17e(0x8e))[_0xd2f17e(0x8d)](/}@@/g,_0xd2f17e(0x95))[_0xd2f17e(0x8d)](/@{/g,'{{')[_0xd2f17e(0x8d)](/}@/g,'}}'):'';return _0xe90c69[MESSAGE]='['+_0x357bd2+_0xd2f17e(0x83)+_0x255555['toUpperCase']()+']\x20'+_0x1c0096+_0xd2f17e(0x7e)+_0x1800f3+'\x20'+(_0x4ff86c==='{}'?'':_0x4ff86c),_0xe90c69;})();module[a1010_0x384f20(0x89)]=function(_0x4bf1e7){const _0x3878ae=a1010_0x384f20;return winston[_0x3878ae(0x7f)]({'transports':[new winston[(_0x3878ae(0x87))][(_0x3878ae(0x8c))]({'name':util[_0x3878ae(0x7d)](_0x3878ae(0x88),_0x4bf1e7,_0x3878ae(0x8b)),'filename':filename(_0x4bf1e7,_0x3878ae(0x8b)),'level':'error','maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x4bf1e7)}),new winston['transports'][(_0x3878ae(0x8c))]({'name':util[_0x3878ae(0x7d)](_0x3878ae(0x88),_0x4bf1e7,'info'),'filename':filename(_0x4bf1e7,_0x3878ae(0x80)),'level':_0x3878ae(0x80),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x4bf1e7)}),new winston[(_0x3878ae(0x87))][(_0x3878ae(0x93))]({'level':cs[_0x3878ae(0x8a)],'format':MotionFormatter(_0x4bf1e7)})]});};
\ No newline at end of file