#NEWLINE# def logs( container ) : #NEWLINE# #INDENT# "\n    Return logs for a specified container\n\n    container\n        container id\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' docker.logs <container id>\n    " #NEWLINE# status = base_status . copy ( ) #NEWLINE# client = _get_client ( ) #NEWLINE# try : #NEWLINE# #INDENT# container_logs = client . logs ( _get_container_infos ( container ) [ 'Id' ] ) #NEWLINE# _valid ( status , id_ = container , out = container_logs ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# _invalid ( status , id_ = container , out = traceback . format_exc ( ) ) #NEWLINE# #UNINDENT# return client