Logs · Guides
Choose how long lines are kept
Each project keeps its lines for a number of days, and each environment can keep its own. An admin of the project sets them.
The project's number
In the project's Settings in Logs, Keeping has Keep lines (days): how long every environment keeps its lines, unless it has a number of its own. It can be 1 up to what your package allows, which the field says beside it and Limits lists.
Until an admin changes it, a project keeps its lines for 14 days, or for its package's most if that is fewer.
An environment's own number
Environments, under it, lists the project's environments with their first and last line. Each one that has sent lines has Keep its lines (days): fill it in to keep that environment's lines for a number of its own, such as fewer days for local or more for production, up to your package's most. Empty it to go back to the project's number.
The environments themselves are the project's, set once at id for every product. A name your app sent that isn't one of them is listed too, marked, and its lines are kept all the same.
When lines are deleted
Every hour, Logs deletes the lines that are older than their environment keeps them. A line that is already older than that when it arrives isn't taken in at all: it is refused, and the SDK says so in your app's own log.
A lower number deletes lines
Every change to either number is written in the project's audit log, with who made it.
When the package changes
On a package that keeps lines for fewer days, the project's number and every environment's own come down to the package's most, and lines older than that go in the next hour. On a bigger package the numbers stay as they were: raise them yourself if you want to keep lines for longer.