Read an app's logs
Choose Open logs on the app's Live log card. On a phone, choose Logs under the app's name.
What the page shows
The top of the page shows how the app is doing over the window you picked:
- how many requests it answered, and about how many a minute
- how many ended in a server error
- how long the slowest 5% of requests took, and how long half of them took
- its slowest paths
Below that is each of the app's processes, whether it's running, and how much memory it uses.
The timeline below merges everything in time order:
| Source | What it holds |
|---|---|
| Requests | Every request to the app's addresses, with its status and how long it took. |
| One per process | What each process printed, such as web or worker. |
| PHP errors | Errors PHP logged while running the app. PHP apps only. |
| Laravel log | The app's own log. Laravel apps only. |
| Scheduler | What the scheduler ran. |
| Deploys | Each deploy, linked to its log. |
Restarts, and processes stopped for running out of memory, show under the process they happened to. A line with a stack trace shows how many more lines it has; choose that to open them.
A line shows the time it was written when the app printed one. Output without a time of its own shows a dash and sits after the line before it.
Search and filter
- Search requests and output finds a word or phrase in every source. It looks for exactly what you typed, ignoring case.
- Window picks how far back to read: the last 15 minutes, hour, 24 hours or 7 days, or everything.
- Everything, Warnings and errors and Errors pick how serious a line must be.
- Each source has a button with its count. Choose one to leave that source out, and again to bring it back.
On a phone, the window, levels and sources are under Filters.
The page's address keeps your choices, so a link you share opens the same view.
Look at one request
Choose a request to see when it arrived, the address it was for, who sent it, the page it came from, the browser, and how much the app sent back. If an error was logged in the same second, the details say so.
Show logs around this narrows every source to ten seconds either side of the request. Back to live returns to the page as it was.
Follow as it happens
The page reads new lines every two seconds and keeps the newest at the bottom. It pauses while you search, and Pause stops it until you choose Resume. If you scroll up to read, new lines collect behind a button that counts them; choose it to jump back to the end.
How far back it reads
Coresmith reads the logs on the app's server while the page is open, and holds what it read for a couple of minutes at most. It reads the newest 1 MB of each log for the last 15 minutes or hour, and the newest 5 MB for longer windows, so on a busy app it may not reach the start of a long window.
The page then shows the newest 300 lines that fit your filters. When there are more, it says it's showing the newest lines only. A search finds older lines, because only the lines that match count.