2017-01-20 10:34:19 +00:00
|
|
|
.. _sec-jsclientlib-logs:
|
2016-06-30 10:06:08 +00:00
|
|
|
|
2017-01-20 10:34:19 +00:00
|
|
|
:mod:`OctoPrintClient.logs`
|
|
|
|
|
---------------------------
|
2016-06-30 10:06:08 +00:00
|
|
|
|
2016-08-26 15:47:38 +00:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
|
|
All methods here require that the used API token or a the existing browser session
|
|
|
|
|
has admin rights.
|
|
|
|
|
|
2017-01-20 10:34:19 +00:00
|
|
|
.. js:function:: OctoPrintClient.logs.list(opts)
|
2016-06-30 10:06:08 +00:00
|
|
|
|
2016-08-26 15:47:38 +00:00
|
|
|
Retrieves a list of log files.
|
|
|
|
|
|
|
|
|
|
See :ref:`Retrieve a list of available log files <sec-api-logs-list>` for details.
|
|
|
|
|
|
|
|
|
|
:param object opts: Additional options for the request
|
|
|
|
|
:returns Promise: A `jQuery Promise <http://api.jquery.com/Types/#Promise>`_ for the request's response
|
|
|
|
|
|
2017-01-20 10:34:19 +00:00
|
|
|
.. js:function:: OctoPrintClient.logs.delete(path, opts)
|
2016-08-26 15:47:38 +00:00
|
|
|
|
|
|
|
|
Deletes the specified log ``path``.
|
|
|
|
|
|
|
|
|
|
See :ref:`Delete a specific log file <sec-api-logs-delete>` 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 <http://api.jquery.com/Types/#Promise>`_ for the request's response
|
|
|
|
|
|
2017-01-20 10:34:19 +00:00
|
|
|
.. js:function:: OctoPrintClient.logs.download(path, opts)
|
2016-08-26 15:47:38 +00:00
|
|
|
|
|
|
|
|
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 <http://api.jquery.com/Types/#Promise>`_ for the request's response
|
2016-06-30 10:06:08 +00:00
|
|
|
|