Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pup/plugins/web-interface/static/js/network.js>getLogs

Universal process manager built in Deno
Go to Latest
function getLogs
import { getLogs } from "https://deno.land/x/pup@1.0.0-rc.7/plugins/web-interface/static/js/network.js";

Fetches the logs for a specific process from the server, optionally filtering by a time range, severity level, and row limit.

Parameters

processId
  • The ID of the process to fetch logs for.
startTimeStamp
  • An optional timestamp indicating the start of the time range for which to fetch logs.
endTimeStamp
  • An optional timestamp indicating the end of the time range for which to fetch logs.
severity
  • An optional severity level by which to filter the logs.
nRows
  • An optional limit on the number of log rows to fetch.