PHPackages                             devorto/slack-logger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. devorto/slack-logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

devorto/slack-logger
====================

Logs errors/notices etc to slack using Psr/LoggerInterface.

1.0.1(6y ago)0813MITPHP

Since Jun 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/devorto/slack-logger)[ Packagist](https://packagist.org/packages/devorto/slack-logger)[ RSS](/packages/devorto-slack-logger/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Slack Logger
============

[](#slack-logger)

Send errors/notices/warnings etc to slack, using this Class which implements the Prs/Log/LoggerInterface.

For more information about the logger interface or log levels see [their github](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md).

Setup webhook
-------------

[](#setup-webhook)

Before you can use this you need to setup a webhook app in slack and connect this to the channel you want to use.

1. Goto .
2. Click on the "New App" button on the top right.
3. Fill in a "App Name" (this will be the sender name in slack)
4. Fill in on which "Development Slack Workspace" you want to have it installed.
5. Click on "Create App".
6. In section "Add features and functionality" select "Incoming Webhooks".
7. Set "Activate Incoming Webhooks" to "On" on the right.
8. This will unfold new options and now click on "Add New Webhook to Workspace" on the bottom of the page.
9. This will bring you to a new page, select on which channel you want the message to be posted.
10. Click on "Install".
11. This will bring you back to the webhook page, now on the bottom of the page copy the webhook url. This url is what you need in below example.

Example
-------

[](#example)

```
