Skip to content

Commit

Permalink
Docs cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chasers committed Jul 9, 2020
1 parent e6a5c1b commit b635371
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/VERCEL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

To use `pino-logflare` in your Vercel project you have to configure:

* Logflare Vercel [integration](https://vercel.com/integrations/logflare) that will handle serverless functions log events.
* Pino browser `send` function
* Logflare Vercel [integration](https://vercel.com/integrations/logflare) that will handle serverless functions log events
* Pino browser `send` function to handle log events from the browser client

Example:

```js
import pino from 'pino'
import { logflarePinoVercel } from "pino-logflare"
import { logflarePinoVercel } from 'pino-logflare'

// create pino-logflare console stream for serverless functions and send function for browser logs
const { stream, send } = logflarePinoVercel({
apiKey: "sJPgBPa0YxuB",
sourceToken: "0666b118-b754-45cc-bf19-fad3f6c603da"
apiKey: "YOUR_KEY",
sourceToken: "0666b118-b754-45cc-bf19-XXXXXXXXXXX"
});

// create pino loggger
Expand Down

0 comments on commit b635371

Please sign in to comment.