duck.cli.commands.logs¶
Module containing the LogsCommand class for Duck project log management.
Module Contents¶
Classes¶
CLI command group for managing Duck project logs. |
API¶
- class duck.cli.commands.logs.LogsCommand[source]¶
CLI command group for managing Duck project logs.
- classmethod _get_log_files() List[pathlib.Path][source]¶
Return a list of log file paths in the logs directory.
- static _sort_logs(logs: List[pathlib.Path], sort: str) List[pathlib.Path][source]¶
Sort logs based on criteria.
- classmethod get_logs_dir() pathlib.Path[source]¶
Get the resolved path to the project’s logs directory.
- classmethod list_logs(max: int = -1, sort: str = 'oldest', show_size: bool = False)[source]¶
List Duck project logs.