def show_auditlog_entries(
application: applications.MigrationApp,
verbose_exc: bool,
ascending_date: bool,
start: typing.Optional[typing.Sequence[str]] = None,
end: typing.Optional[typing.Sequence[str]] = None,
limit: typing.Optional[int] = 10,
) -> None:
entries_result = use_cases.get_auditlog_entries(
application,
start=formatters.format_app_date(application, start),
end=formatters.format_app_date(application, end),
limit=limit,
verbose_exc=verbose_exc,
ascending_date=ascending_date,
)
if entries_result is not use_cases.UseCaseFailed:
output.print(
terminaltables.SingleTable(
[
["Date", "Is Failed", "Transaction Type", "Migration"],
*(formatters.format_auditlog_entry(entry) for entry in entries_result),
]
).table
)