కంటెంట్‌కు వెళ్లండి

Log టెంప్లేట్

ప్రతి ఒక్కటి ఐచ్ఛిక టైమ్‌స్టాంప్ మరియు తీవ్రతతో, 20 కొత్తవి-ముందు లైన్‌ల వరకు ఒక స్ట్రీమింగ్ ఫీడ్. సర్వర్ మీరు యాప్‌లో పొందగల ఒక స్క్రోల్-బ్యాక్ బ్యాక్‌లాగ్‌ను ఉంచుతుంది, అయితే లైవ్ యాక్టివిటీ ఎల్లప్పుడూ అత్యంత ఇటీవలి లైన్‌లను చూపుతుంది.

లైవ్ యాక్టివిటీ ప్రదర్శన

On Android, a log is a Live Update in the notification shade that lists the newest lines, with a status bar chip that counts the time since the newest one.

Fields

FieldTypeDescription
templatestringRequired. Must be "log"
linesarrayRequired. 1–20 line objects, newest first (see below). Replaced wholesale on PATCH — to stream a feed, prepend the new line and re-send the full array (why)
statestringStatus text shown beside the activity name (e.g. the source name)
iconstringSF Symbol name (e.g. "doc.text") or MDI icon with mdi: prefix
accent_colorstringNamed color or hex used for the heading icon. Default: green
background_colorstringBackground color override
text_colorstringText color override
యాప్ వెర్షన్ 1.14.0 లో వస్తోంది
యాప్ వెర్షన్ 1.19.1 లో వస్తోంది
ℹ సమాచారం

The heading above the feed is the activity's top-level name, not a content field. Set it when you create the activity.

Line object

Each entry in lines is an object:

FieldTypeDescription
textstringRequired. The log message. Max 512 characters
atintegerUnix timestamp (seconds) shown as the line's time
levelstringOne of info, warn, error — tints the line and its marker
ℹ సమాచారం

The Live Activity always shows the most recent lines that fit the ~4 KB APNs payload.

💡 చిట్కా

The server keeps a rolling scroll-back backlog beyond what fits on screen. The PushWard app fetches it with GET /activities/{slug}?include=log_backlog to show full history in-app — the field is read-only and never needs to be sent.

Example: Streaming Deploy Log

స్ట్రీమింగ్ డిప్లాయ్ log
{
  "state": "ongoing",
  "content": {
    "template": "log",
    "state": "pushward-server",
    "icon": "doc.text",
    "accent_color": "purple",
    "lines": [
      { "text": "Rollout complete — 3/3 pods healthy", "at": 1718990000, "level": "info" },
      { "text": "Image pull slow on node arm-2", "at": 1718989950, "level": "warn" },
      { "text": "Applied manifest revision d86246c", "at": 1718989930, "level": "info" },
      { "text": "Sync started by webhook", "at": 1718989900, "level": "info" }
    ]
  }
}

Use Cases

  • CI/CD — live deploy and pipeline logs
  • Home automation — event feeds (motion, doors, presence)
  • Monitoring — rolling alert and incident streams
  • Self-hosting — download/import progress, backup steps, sync activity