PHPackages                             wshafer/psr11-monolog - 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. wshafer/psr11-monolog

Abandoned → [blazon/psr11-monolog](/?search=blazon%2Fpsr11-monolog)Library[Logging &amp; Monitoring](/categories/logging)

wshafer/psr11-monolog
=====================

Monolog Facotories for PSR-11

3.0.0(6y ago)958.3k4[1 PRs](https://github.com/wshafer/psr11-monolog/pulls)3BSD-2-ClausePHPPHP ^7.2CI failing

Since Jul 25Pushed 4y ago4 watchersCompare

[ Source](https://github.com/wshafer/psr11-monolog)[ Packagist](https://packagist.org/packages/wshafer/psr11-monolog)[ Docs](https://github.com/wshafer/psr11-monolog)[ RSS](/packages/wshafer-psr11-monolog/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)Dependencies (17)Versions (11)Used By (3)

[![codecov](https://camo.githubusercontent.com/e0d16ff1c95ba1475d279e9bf5b20cc561ce705ae1140bfffb88bf83db2146b7/68747470733a2f2f636f6465636f762e696f2f67682f777368616665722f70737231312d6d6f6e6f6c6f672f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/wshafer/psr11-monolog)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/66c8df02e6ef4036ca3502ad1f786345b4409b21a807bb28d618fb43b807fb77/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f777368616665722f70737231312d6d6f6e6f6c6f672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/wshafer/psr11-monolog/?branch=master)[![Build Status](https://camo.githubusercontent.com/c313034f96798926c0818585fdaca610e22ed0026b674e4da4c115c76d28fdbc/68747470733a2f2f7472617669732d63692e6f72672f777368616665722f70737231312d6d6f6e6f6c6f672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wshafer/psr11-monolog)

PSR-11 Monolog
==============

[](#psr-11-monolog)

This repository has moved and is no longer maintained. Please visit the new repo here:

[Monolog](https://github.com/Seldaek/monolog) Factories for PSR-11

#### Table of Contents

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Containers](#containers)
    - [Pimple](#pimple-example)
    - [Zend Service Manager](#zend-service-manager)
- [Frameworks](#frameworks)
    - [Zend Expressive](#zend-expressive)
    - [Zend Framework 3](#zend-framework-3)
- [Configuration](#configuration)
    - [Minimal Configuration](#minimal-configuration)
        - [Example](#minimal-example)
    - [Full Configuration](#full-configuration)
        - [Full Example](#full-example)
    - [Channels](#channels)
    - [Handlers](#handlers)
        - [Log to files and syslog](#log-to-files-and-syslog)
            - [StreamHandler](#streamhandler)
            - [RotatingFileHandler](#rotatingfilehandler)
            - [SyslogHandler](#sysloghandler)
            - [ErrorLogHandler](#errorloghandler)
            - [ProcessHandler](#processhandler)
        - [Send alerts and emails](#send-alerts-and-emails)
            - [NativeMailerHandler](#nativemailerhandler)
            - [SwiftMailerHandler](#swiftmailerhandler)
            - [PushoverHandler](#pushoverhandler)
            - [FlowdockHandler](#flowdockhandler)
            - [SlackWebhookHandler](#slackwebhookhandler)
            - [SlackHandler](#slackhandler)
            - [SendGridHandler](#sendgridhandler)
            - [MandrillHandler](#mandrillhandler)
            - [FleepHookHandler](#fleephookhandler)
            - [IFTTTHandler](#ifttthandler)
            - [TelegramBotHandler](#telegrambothandler)
        - [Log specific servers and networked logging](#log-specific-servers-and-networked-logging)
            - [SocketHandler](#sockethandler)
            - [AmqpHandler](#amqphandler)
            - [GelfHandler](#gelfhandler)
            - [CubeHandler](#cubehandler)
            - [ZendMonitorHandler](#zendmonitorhandler)
            - [NewRelicHandler](#newrelichandler)
            - [LogglyHandler](#logglyhandler)
            - [RollbarHandler](#rollbarhandler)
            - [SyslogUdpHandler](#syslogudphandler)
            - [LogEntriesHandler](#logentrieshandler)
            - [InsightOpsHandler](#insightopshandler)
            - [LogmaticHandler](#logmatichandler)
            - [SqsHandler](#sqshandler)
        - [Logging in development](#logging-in-development)
            - [FirePHPHandler](#firephphandler)
            - [ChromePHPHandler](#chromephphandler)
            - [BrowserConsoleHandler](#browserconsolehandler)
            - [PHPConsoleHandler](#phpconsolehandler)
        - [Log to databases](#log-to-databases)
            - [RedisHandler](#redishandler)
            - [MongoDBHandler](#mongodbhandler)
            - [CouchDBHandler](#couchdbhandler)
            - [DoctrineCouchDBHandler](#doctrinecouchdbhandler)
            - [ElasticSearchHandler](#elasticsearchhandler)
            - [DynamoDbHandler](#dynamodbhandler)
        - [Wrappers / Special Handlers](#wrappers--special-handlers)
            - [FingersCrossedHandler](#fingerscrossedhandler)
            - [DeduplicationHandler](#deduplicationhandler)
            - [WhatFailureGroupHandler](#whatfailuregrouphandler)
            - [FallbackGroupHandler](#fallbackgrouphandler)
            - [BufferHandler](#bufferhandler)
            - [GroupHandler](#grouphandler)
            - [FilterHandler](#filterhandler)
            - [SamplingHandler](#samplinghandler)
            - [NoopHandler](#noophandler)
            - [NullHandler](#nullhandler)
            - [PsrHandler](#psrhandler)
            - [TestHandler](#testhandler)
            - [OverflowHandler](#overflowhandler)
    - [Formatters](#formatters)
        - [LineFomatter](#linefomatter)
        - [HtmlFormatter](#htmlformatter)
        - [NormalizerFormatter](#normalizerformatter)
        - [ScalarFormatter](#scalarformatter)
        - [JsonFormatter](#jsonformatter)
        - [WildfireFormatter](#wildfireformatter)
        - [ChromePHPFormatter](#chromephpformatter)
        - [GelfMessageFormatter](#gelfmessageformatter)
        - [LogstashFormatter](#logstashformatter)
        - [ElasticaFormatter](#elasticaformatter)
        - LogglyFormatter:
        - [FlowdockFormatter](#flowdockformatter)
        - [MongoDBFormatter](#mongodbformatter)
        - [LogmaticFormatter](#logmaticFormatter)
    - [Processors](#processors)
        - [PsrLogMessageProcessor](#psrlogmessageprocessor)
        - [IntrospectionProcessor](#introspectionprocessor)
        - [WebProcessor](#webprocessor)
        - [MemoryUsageProcessor](#memoryusageprocessor)
        - [MemoryPeakUsageProcessor](#memorypeakusageprocessor)
        - [ProcessIdProcessor](#processidprocessor)
        - [UidProcessor](#uidprocessor)
        - [GitProcessor](#gitprocessor)
        - [MercurialProcessor](#mercurialprocessor)
        - [TagProcessor](#tagprocessor)
        - [HostnameProcessor](#hostname)
- [Upgrades](#upgrades)
    - [Version 2 to version 3](#version-2-to-version-3)
    - [Version 1 to version 2](#version-1-to-version-2)

Installation
============

[](#installation)

```
composer require wshafer/psr11-monolog
```

Usage
=====

[](#usage)

```
