.. sec-jsclientlib-logs: :mod:`OctoPrint.logs` --------------------- .. note:: All methods here require that the used API token or a the existing browser session has admin rights. .. js:function:: OctoPrint.logs.list(opts) Retrieves a list of log files. See :ref:`Retrieve a list of available log files ` for details. :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response .. js:function:: OctoPrint.logs.delete(path, opts) Deletes the specified log ``path``. See :ref:`Delete a specific log file ` for details. :param string path: The path to the log file to delete :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response .. js:function:: OctoPrint.logs.download(path, opts) Downloads the specified log ``file``. See :js:func:`OctoPrint.download` for more details on the underlying library download mechanism. :param string path: The path to the log file to download :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response