@Name : __cleanPreviousLogs @Desc : Removes the Previous Logs @Return: N\A @Input: logfolder_to_remove: Path of Log to remove
(self, logfolder_to_remove)
| 97 | return FAILED |
| 98 | |
| 99 | def __cleanPreviousLogs(self, logfolder_to_remove): |
| 100 | ''' |
| 101 | @Name : __cleanPreviousLogs |
| 102 | @Desc : Removes the Previous Logs |
| 103 | @Return: N\A |
| 104 | @Input: logfolder_to_remove: Path of Log to remove |
| 105 | ''' |
| 106 | try: |
| 107 | if os.path.isdir(logfolder_to_remove): |
| 108 | os.rmdir(logfolder_to_remove) |
| 109 | except Exception as e: |
| 110 | print("\n Exception Occurred Under __cleanPreviousLogs :%s" % \ |
| 111 | GetDetailExceptionInfo(e)) |
| 112 | return FAILED |
| 113 | |
| 114 | def getLogger(self): |
| 115 | ''' |
nothing calls this directly
no test coverage detected