def list_snapshots(connection, volume):
logger.info(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>logger.info(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(<EOL>snapshot='<STR_LIT>',<EOL>snapshot_name='<STR_LIT>',<EOL>created='<STR_LIT>'))<EOL>logger.info(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>vid = get_volume_id(connection, volume)<EOL>if vid:<EOL><INDENT>vol = connection.get_all_volumes(volume_ids=[vid])[<NUM_LIT:0>]<EOL>for snap in vol.snapshots():<EOL><INDENT>logger.info(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(<EOL>snapshot=snap.id,<EOL>snapshot_name=snap.tags.get('<STR_LIT:Name>', '<STR_LIT>'),<EOL>created=snap.start_time))<EOL><DEDENT><DEDENT>logger.info(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL>
List all snapshots for the volume

    :type connection: boto.ec2.connection.EC2Connection
    :param connection: EC2 connection object
    :type volume: str
    :param volume: Volume ID or Volume Name
    :returns: None