diff --git a/lib/host.sh b/lib/host.sh index b8925d4..42e2362 100644 --- a/lib/host.sh +++ b/lib/host.sh @@ -31,6 +31,14 @@ function bashio::host.reboot() { bashio::api.supervisor POST /host/reboot } +# ------------------------------------------------------------------------------ +# Returns the logs created by the host system. +# ------------------------------------------------------------------------------ +function bashio::host.logs() { + bashio::log.trace "${FUNCNAME[0]}" + bashio::api.supervisor GET /host/logs true +} + # ------------------------------------------------------------------------------ # Returns a JSON object with generic Host information. #