Show crashlogs list for application.

    Prints crashlog list in "Unix Timestamp - UUID" format.

    Filtering by day accepts the following variants: today, yesterday, %d, %d-%m or %d-%m-%Y.
    For example given today is a 06-12-2016 crashlogs for yesterday can be listed using:
    `--day=yesterday`, `--day=5`, `--day=05-12` or `--day=05-12-2016`.

def crashlog_list(name, day, **kwargs):
    """
    Show crashlogs list for application.

    Prints crashlog list in "Unix Timestamp - UUID" format.

    Filtering by day accepts the following variants: today, yesterday, %d, %d-%m or %d-%m-%Y.
    For example given today is a 06-12-2016 crashlogs for yesterday can be listed using:
    `--day=yesterday`, `--day=5`, `--day=05-12` or `--day=05-12-2016`.
    """
    ctx = Context(**kwargs)
    ctx.execute_action('crashlog:list', **{
        'storage': ctx.repo.create_secure_service('storage'),
        'name': name,
        'day_string': day,
    })