def __init__ (self):
        """ LogStorageManager constructor

        Initialising the LogStorageManager class

        :Parameters:
             - 
             
        :Returns:
             - None
        """
        ##
        #Private Members
        ########################################################################
        self._actionLogName  =   ('ActivityLogFile')
        self._logHandle      =   None
        self._maxEntries     =   20
        self._maxEntryCount  =   0
        self._logStr         =   None
        self._threadObject   =   None
        self._threadFlag     =   False
        
        """ check if the log file exists. If yes read the entries and update the
        entry counter."""
        if os.path.exists(self._actionLogName):
             """ The log file exists already """
             logFile = open(self._actionLogName, 'r')
             """ Read the number of entries from the log file"""
             self._maxEntryCount = len(logFile.readlines())
             print('No. of entries in Action log file:%d' %\
                              self._maxEntryCount )
             """ Close it"""
             logFile.close()
             
        """ Flag which will be usd to determine that the application is shutting down """
        self._isRunning = True         
        print('LogStorageManager Class Initialised..')
 LogStorageManager constructor

        Initialising the LogStorageManager class

        :Parameters:
             - 
             
        :Returns:
             - None
        
recipes/Python/440477_Writes_logfiles_and_keep_backups/recipe-440477.py