Star us on GitHub
Star
Menu

PHP

Learn how to set up highlight.io PHP log ingestion.

1

Set up your frontend highlight.io integration.

First, make sure you've followed the frontend getting started guide.

2

Set up your highlight.io SDK.

Make sure you've also followed the backend getting started guide.

3

Add Highlight logger.

Highlight.captureLog() will record and send logs to Highlight.

use Highlight\SDK\Highlight; $logger = Highlight::HighlightLogger(Highlight::$highlight) $logger->process(Highlight::HighlightLogRecordBuilder()->build());
Copy
4

Verify your backend logs are being recorded.

Visit the highlight logs portal and check that backend logs are coming in.