A live stream of everything your API and its pages do
Requests, errors, security events, Web Vitals and the lines your server prints all land on one stream in the dashboard, filtered on the server so a busy project stays readable.
One stream, three sources
Your API, the web app that calls it and whatever the server prints arrive on the same stream, in the order they happened. When an API runs short of database connections, you can watch the console warning, the 500 it caused and the checkout page that broke, one after another.
Filters that apply before the data is sent
Method, status class, event type and severity filters run on the server, before a frame reaches your browser, so a high-traffic project does not flood the page.
- Event types: request, error, security, performance, custom, console.
- Severity: low, medium, high, critical.
- Categories: application, infrastructure, security, performance, business.
Console output without the noise
The agent captures what your server prints, with colour codes stripped and credentials masked before a line is queued.
- Severity comes from the line: ERROR and FATAL are high, WARN and other stderr output are medium, the rest is low.
- Printed lines never count towards request totals, error rates or latency.
- Capture is bounded to 100 lines a second, with room for a 1,000-line burst.
- A themed terminal view shows the output on its own page.
History and search
Logs and Terminal keep history for a window set by your plan: 24 hours on Starter, 7 days on Basic and 30 days on Pro. The same data is available through the query API and a realtime socket, if you want to build on it.
Questions
Can I see API logs in real time?
Yes. Requests, errors and console lines appear in the dashboard as they happen. Filters run on the server so only the events you asked for are sent.
Does Midline capture console.log output?
The Node agent captures what your server prints to stdout and stderr. Severity is taken from the line, credentials are masked and colour codes are removed. These lines are kept out of your request and error numbers.
How long are logs kept?
It depends on the plan: 24 hours on Starter, 7 days on Basic and 30 days on Pro.
Can I read the stream from my own code?
Yes. There is a realtime socket for the live stream and a query API for stored events.
Realtime socket · Querying logs · Node.js agent
Start free