deploy/classic/logs.md
:::info Legacy Documentation
You are viewing legacy documentation for Deno Deploy Classic. We recommend migrating to the new <a href="/deploy/">Deno Deploy</a> platform.
:::
Applications can generate logs at runtime using the console API, with methods
such as console.log, console.error, etc. These logs can be viewed in real
time by either:
Logs panel of a project or deployment.logs subcommand in deployctl.Logs will be streamed directly from the application to the log panel or
displayed in deployctl logs.
In addition to real-time logs, logs are also retained for a certain duration, which depends on the subscription plan you are on. To view persisted logs, you can:
Live to either
Recent or Custom in the dropdown menu next to the search box.--since=<DATETIME> and/or
--until=<DATETIME> to your deployctl logs command. For more details,
consult deployctl logs --help.Logs older than the retention period are automatically deleted from the system.
There are limits on both the size of a log message and the volume of logs produced in a certain amount of time.
Log messages have a maximum size of 2KB. Messages larger than this limit are trimmed to 2KB.
A deployment is allowed to produce up to 1000 log entries per second. If it is exceeded, we may terminate the deployment.