import logging

class AGOUTI_LOG(object):
	def __init__(self):
		pass

	def create_logger(self, logFile=None):
		pass

class PROGRESS_METER(AGOUTI_LOG):
	def __init__(self, loggerName):
		logLevel = logging.INFO
		self.logger = logging.getLogger(loggerName.upper())
		self.logger.setLevel(logLevel)
		formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(name)s - %(message)s')
		consoleHandler = logging.StreamHandler()
		consoleHandler.setLevel(logLevel)
		consoleHandler.setFormatter(formatter)
		self.logger.addHandler(consoleHandler)

	def add_file_handler(self, logFile, mode='w'):
		fileHandler = logging.FileHandler(logFile, mode=mode)
		fileHandler.setLevel(logging.INFO)
		formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(name)s - %(message)s')
		fileHandler.setFormatter(formatter)
		self.logger.addHandler(fileHandler)

class DEBUG(AGOUTI_LOG):
	def __init__(self, loggerName, logFile, mode='w'):
		logLevel = logging.DEBUG
		self.logger = logging.getLogger(loggerName.upper())
		self.logger.setLevel(logLevel)
		fileHandler = logging.FileHandler(logFile, mode=mode)
		fileHandler.setLevel(logLevel)
		formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(name)s - %(message)s')
		fileHandler.setFormatter(formatter)
		self.logger.addHandler(fileHandler)

@@ -133,26 +133,22 @@
 S_METER(
-AGOUTI_LOG
+object
 ):%0A%09def 
@@ -201,16 +201,38 @@
 ng.INFO%0A
+%09%09self.logFile = None%0A
 %09%09self.l
@@ -267,32 +267,44 @@
 ggerName.upper()
++%22_PROGRESS%22
 )%0A%09%09self.logger.
@@ -620,16 +620,41 @@
 e='w'):%0A
+%09%09self.logFile = logFile%0A
 %09%09fileHa
@@ -673,32 +673,37 @@
 ing.FileHandler(
+self.
 logFile, mode=mo
@@ -920,26 +920,22 @@
 s DEBUG(
-AGOUTI_LOG
+object
 ):%0A%09def 
@@ -941,34 +941,36 @@
  __init__(self, 
-lo
+debu
 ggerName, logFil
@@ -1009,34 +1009,36 @@
 ng.DEBUG%0A%09%09self.
-lo
+debu
 gger = logging.g
@@ -1038,34 +1038,36 @@
 gging.getLogger(
-lo
+debu
 ggerName.upper()
@@ -1066,16 +1066,25 @@
 .upper()
++%22_DEBUG%22
 )%0A%09%09self
@@ -1076,34 +1076,36 @@
 _DEBUG%22)%0A%09%09self.
-lo
+debu
 gger.setLevel(lo
@@ -1326,34 +1326,36 @@
 rmatter)%0A%09%09self.
-lo
+debu
 gger.addHandler(

remove inheritance of PROGRESS_METER and DEBUG to AGOUTI_LOG; progress and debug logger will have different loggername now