You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: platform-includes/logs/usage/php.mdx
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,3 +17,6 @@ You can pass additional attributes directly to the logging functions. These prop
17
17
// Somewhere at the end of your execution, you should flush the logger to send pending logs to Sentry.
18
18
\Sentry\logger()->flush();
19
19
```
20
+
21
+
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.
0 commit comments