networkLogging.py (864B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\carbon\common\script\sys\networkLogging.py 2 import blue 3 from carbon.common.script.sys.service import Service 4 from carbon.common.script.sys.serviceConst import ROLE_SERVICE 5 from eveprefs import boot 6 7 class NetworkLogging(Service): 8 __guid__ = 'svc.networkLogging' 9 __displayname__ = 'Network Logging' 10 __exportedcalls__ = {'StartNetworkLogging': [ROLE_SERVICE], 11 'StopNetworkLogging': [ROLE_SERVICE], 12 'GetLoggingState': [ROLE_SERVICE]} 13 14 def StartNetworkLogging(self, server, port, threshold): 15 if server and port: 16 return blue.EnableNetworkLogging(server, int(port), boot.role, int(threshold)) 17 18 def StopNetworkLogging(self): 19 return blue.DisableNetworkLogging() 20 21 def GetLoggingState(self): 22 return blue.GetNetworkLoggingState()