Snapwake

DocsRunning your app

Logs and status

Status

Terminal
snapwake apps
Output
app             home    current         state      VMs  health
shop            n2      v1764158400123  sleeping     0  ok
shop-worker     n1      v1764158400999  awake        1  ok
api             n2      v1764150000321  awake        3  ok
Terminal
snapwake status shop
Output
shop            n2      v1764158400123  sleeping     0  ok
  processes: web 512 MB, 0-4 VMs, health /healthz every 10 s
  last failure: health (2 in a row)
  * v1764158400123  ready     upload:9f2c...
    v1764151100456  ready     upload:41ab...
Column Meaning
home the server the app lives on
current the version serving requests
state sleeping, waking or awake
VMs VMs running now
health ok, restarting (failed recently, waking again after a pause) or broken (see Health checks)

The state comes from the home server, which reports about once a second. Right after a change it may lag by a moment.

Logs

Terminal
snapwake logs shop        # the last 100 lines
snapwake logs shop -f     # then keep following

The log is the console of the app's VMs:

  • everything your app writes to standard output and standard error;
  • when a VM boots fresh (the first start of a version, a fresh start of an app with a volume): the Linux kernel's boot messages and a few lines from Snapwake's init, prefixed flare-init:, such as when the app was started and when it began to listen.

A wake from a snapshot prints nothing by itself, so an app that doesn't log requests shows nothing for them. All VMs of an app write to the same log.

Platform events are not in the log yet. Wakes, sleeps, health-check failures and restarts don't appear there; snapwake status shows the current health and the last failure.

Secrets are masked. Values of your app's secrets that are 6 characters or longer are replaced with ***, and so are the values of Authorization, Proxy-Authorization, Cookie, Set-Cookie and X-Api-Key headers and bearer tokens, if your app prints them. Don't rely on masking: avoid printing secrets.

How much is kept. The log is kept on the app's home server. When it passes 16 MB, it is rotated: the previous 16 MB are kept, older lines are dropped. snapwake logs reads the last 100 lines (from at most the last 256 KB). After the app moves to another server, logs shows that server's log; earlier lines stay on the old one.

For logs you want to keep or search, send them from your app to a logging service. Snapwake can't ship logs to an external service by itself yet.