Features

Logs

Every line your app writes with the console, pino, winston or NestJS's Logger, linked to the request or job it was written in.

The Logs page shows the lines your app writes, live: with console.log, console.warn and the others, pino, winston and NestJS's Logger. A line written while a request (or a job) is handled links to it, and shows up on its timeline too; lines written anywhere else (at startup, in a timer) are there as well.

PeekInside finds pino and winston in your project and records what they write, including from child loggers and loggers created before PeekInside started. Lines a logger turned off (its level is higher) aren't recorded. Their structured data (pino's merging object, winston's metadata) is kept with the line.

In a NestJS app, the lines of Nest's default logger keep the class that wrote them ([OrdersService] Charging card), with their stack for errors; a redaction you set up on the logger applies to them too. Nest's own startup lines (modules loaded, routes mapped) are left out, its warnings and errors aren't. An app that gives Nest a pino or winston logger (such as nestjs-pino) has its lines recorded through that logger.

Filtering#

Filter Shows
Text Lines containing it
Level All, info and up, warnings and up, or errors
request:<id> One request's lines (from the request's inspector)
job:<id> One job run's lines (from the run's inspector)

Limits#

Option Default Description
captureLogs true Record log lines (false turns them off, on timelines too)
logLevel info The lowest level the Logs page records (timelines keep every level)

At most 100 lines a second are recorded per process (bursts of 500), so an app that logs heavily costs a bounded amount. Lines longer than 4 KB are cut. PeekInside's own lines ([peekinside] ...) are never recorded.

With PeekInside Cloud, each line is encrypted on your server; only its time, level, source and the request or job it belongs to are readable.