Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions platform-includes/logs/usage/php.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ You can pass additional attributes directly to the logging functions. These prop
// Somewhere at the end of your execution, you should flush the logger to send pending logs to Sentry.
\Sentry\logger()->flush();
```

If you are using logs in long running CLI tasks, we recommend periodically calling `\Sentry\logger()->flush()` to keep memory pressure low and avoid any logs being discarded to due size-limits.

Loading