clan_lib: Heavily simplified log_manager and test suite to concentrate on actually used features
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -8,10 +8,10 @@ LOG_MANAGER_INSTANCE: LogManager | None = None
|
||||
@API.register
|
||||
def list_log_days() -> list[str]:
|
||||
"""List all available log days.
|
||||
|
||||
|
||||
Returns:
|
||||
A list of date strings in YYYY-MM-DD format representing all available log days.
|
||||
|
||||
|
||||
Raises:
|
||||
AssertionError: If LOG_MANAGER_INSTANCE is not initialized.
|
||||
"""
|
||||
@@ -22,14 +22,14 @@ def list_log_days() -> list[str]:
|
||||
@API.register
|
||||
def list_log_groups(selector: list[str], date_day: str | None = None) -> list[str]:
|
||||
"""List all log groups at the specified hierarchical path.
|
||||
|
||||
|
||||
Args:
|
||||
selector: List of path components to navigate to. Empty list returns top-level groups.
|
||||
date_day: Optional date to filter by (YYYY-MM-DD format). If None, uses most recent day.
|
||||
|
||||
|
||||
Returns:
|
||||
A list of folder names (decoded) at the specified path level.
|
||||
|
||||
|
||||
Raises:
|
||||
AssertionError: If LOG_MANAGER_INSTANCE is not initialized.
|
||||
"""
|
||||
@@ -42,15 +42,15 @@ def get_log_file(
|
||||
id_key: str, selector: list[str] | None = None, date_day: str | None = None
|
||||
) -> str:
|
||||
"""Get the contents of a specific log file by operation key.
|
||||
|
||||
|
||||
Args:
|
||||
id_key: The operation key to search for.
|
||||
selector: Optional group path to search in. If None, searches all groups.
|
||||
date_day: Optional specific date to search in (YYYY-MM-DD format). If None, searches all days.
|
||||
|
||||
|
||||
Returns:
|
||||
The contents of the log file as a string.
|
||||
|
||||
|
||||
Raises:
|
||||
ClanError: If the log file is not found.
|
||||
AssertionError: If LOG_MANAGER_INSTANCE is not initialized.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user