Skip to content

Commit 01aaa3b

Browse files
committed
Merge branch 'papertrail-instructions' of https://github.com/ilamp/docs into ilamp-papertrail-instructions
2 parents 9027488 + 9484fe7 commit 01aaa3b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

logging.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Name | Description
4242
`single` | A single file or path based logger channel (`StreamHandler`)
4343
`daily` | A `RotatingFileHandler` based Monolog driver which rotates daily
4444
`slack` | A `SlackWebhookHandler` based Monolog driver
45+
`papertrail` | A `SyslogUdpHandler` based Monolog driver
4546
`syslog` | A `SyslogHandler` based Monolog driver
4647
`errorlog` | A `ErrorLogHandler` based Monolog driver
4748
`monolog` | A Monolog factory driver that may use any supported Monolog handler
@@ -64,6 +65,11 @@ Name | Description | Default
6465
The `slack` channel requires a `url` configuration option. This URL should match a URL for an [incoming webhook](https://slack.com/apps/A0F7XDUAZ-incoming-webhooks) that you have configured for your Slack team.
6566

6667
<a name="building-log-stacks"></a>
68+
69+
#### Configuring The PaperTrail Channel
70+
71+
The `papertrail` channel requires `url` and `port`. You can obtain these from [PaperTrail](https://help.papertrailapp.com/kb/configuration/configuring-centralized-logging-from-php-apps/#send-events-from-php-app) and can be defined in the .env file as `PAPERTRAIL_URL` & `PAPERTRAIL_PORT`.
72+
6773
### Building Log Stacks
6874

6975
As previously mentioned, the `stack` driver allows you to combine multiple channels into a single log channel. To illustrate how to use log stacks, let's take a look at an example configuration that you might see in a production application:

0 commit comments

Comments
 (0)