portage.emaint.modules.logs.logs module¶
- class portage.emaint.modules.logs.logs.CleanLogs¶
Bases:
object
- static _clean_logs(clean_cmd, settings)¶
- static _convert_errors(rval)¶
- can_progressbar(func)¶
- check(**kwargs)¶
- clean(**kwargs)¶
Log directory cleaning function
- Parameters
**kwargs –
optional dictionary of values used in this function are: settings: portage settings instance: defaults to portage.settings
”PORTAGE_LOGDIR”: directory to clean “PORTAGE_LOGDIR_CLEAN”: command for cleaning the logs.
- options: dict:
’NUM’: int: number of days ‘pretend’: boolean
- static name()¶
- short_desc = 'Clean PORTAGE_LOGDIR logs'¶