mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 09:42:15 +03:00
added logger to scope
This commit is contained in:
parent
b44e46d20f
commit
128290359d
1 changed files with 12 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
||||
# @author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
||||
|
||||
|
||||
class Scope(object):
|
||||
|
@ -9,15 +9,25 @@ class Scope(object):
|
|||
super(Scope, self).__init__()
|
||||
self.customMap = {}
|
||||
self.configurationManager=None
|
||||
self.logger=None
|
||||
|
||||
def getCustomMap(self):
|
||||
return self.customMap
|
||||
|
||||
def putCustomMap(self,name,value):
|
||||
self.custom[name]=value
|
||||
self.custom[str(name)]=value
|
||||
|
||||
def getCustomParam(self,name):
|
||||
return self.customMap[str(name)]
|
||||
|
||||
def getConfigurationManager(self):
|
||||
return self.configurationManager
|
||||
|
||||
def serConfigurationManager(self,configurationManager):
|
||||
self.configurationManager = configurationManager
|
||||
|
||||
def getLogger(self):
|
||||
return self.logger
|
||||
|
||||
def setLogger(self,logger):
|
||||
self.logger = logger
|
||||
|
|
Loading…
Reference in a new issue