PHPackages                             wyrihaximus/react-psr-3-loggly - 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. wyrihaximus/react-psr-3-loggly

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

wyrihaximus/react-psr-3-loggly
==============================

🪵 Async PSR-3 loggly logger

3.0.0(7mo ago)29.2k↓50%[5 PRs](https://github.com/WyriHaximus/reactphp-psr-3-loggly/pulls)MITMakefilePHP ^8.4CI passing

Since Feb 4Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/WyriHaximus/reactphp-psr-3-loggly)[ Packagist](https://packagist.org/packages/wyrihaximus/react-psr-3-loggly)[ GitHub Sponsors](https://github.com/WyriHaximus)[ RSS](/packages/wyrihaximus-react-psr-3-loggly/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (6)Versions (16)Used By (0)

[ReactPHP](http://reactphp.org/) [PSR-3](http://www.php-fig.org/psr/psr-3/) [Loggly](https://www.loggly.com/) logger
====================================================================================================================

[](#reactphp-psr-3-loggly-logger)

[![Linux Build Status](https://camo.githubusercontent.com/975c322ca7650d48cb21e920d975178fe1609d6f7883fc67296b0eddd830d2a8/68747470733a2f2f7472617669732d63692e6f72672f57797269486178696d75732f72656163747068702d7073722d332d6c6f67676c792e706e67)](https://travis-ci.org/WyriHaximus/reactphp-psr-3-loggly)[![Latest Stable Version](https://camo.githubusercontent.com/2dc5ecd0c6f9b5a1f1b089b1bfa6dc845aff3d50d34c68c6690604e160919d3e/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d7073722d332d6c6f67676c792f762f737461626c652e706e67)](https://packagist.org/packages/WyriHaximus/react-psr-3-loggly)[![Total Downloads](https://camo.githubusercontent.com/c7f1090c7d58e10da2ee6cea3b41a292bcfd2222a518495328f8be8af8ce2515/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d7073722d332d6c6f67676c792f646f776e6c6f6164732e706e67)](https://packagist.org/packages/WyriHaximus/react-psr-3-loggly/stats)[![Code Coverage](https://camo.githubusercontent.com/47ed601e8c8740cc6dfe0b9a8abc72a8e5e1cf1a8a4d075849cc9b8797d0a178/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57797269486178696d75732f72656163747068702d7073722d332d6c6f67676c792f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/WyriHaximus/reactphp-psr-3-loggly/?branch=master)[![License](https://camo.githubusercontent.com/2987690c0c5abfe941670ae4ece9282c35c5b253fc6fa7636439a85be58aebd3/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f72656163742d7073722d332d6c6f67676c792f6c6963656e73652e706e67)](https://packagist.org/packages/wyrihaximus/react-psr-3-loggly)

### Installation

[](#installation)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.

```
composer require wyrihaximus/react-psr-3-loggly

```

Loggers
-------

[](#loggers)

This package comes with two loggers:

- `LogglyLogger` - Basic logger that will send every `log` call directly to Loggly.
- `LogglyBulkLogger` - Buffering logger that will log either what max buffer size is reached or when timeout is reached.

Usage
-----

[](#usage)

Creating the `LoggerlyLogger` can be done in two ways. Either create it with an [`event loop`](https://github.com/reactphp/event-loop), this will create a [`HTTP Client`](https://github.com/reactphp/http-client) internally:

```
$token = 'abc';
$loop = createEventLoop();
$logger = LogglyLogger::create($loop, $token);
```

Or create `LoggerlyLogger` with an already create [`HTTP Client`](https://github.com/reactphp/http-client).

```
$token = 'abc';
$httpClient = createHttpClient();
$logger = LogglyLogger::createFromHttpClient($httpClient, $token);
```

For the `LogglyBulkLogger` a third parameter can be added. The timeout parameter, represented as float, used as maximum time to wait before sending all logs in the buffer to [`Loggly`](https://www.loggly.com/). Another difference with the bulk logger is that `createFromHttpClient` also requires the event loop due to the usage of timers:

```
$token = 'abc';
$loop = createEventLoop();
$httpClient = createHttpClient();
$logger = LogglyBulkLogger::createFromHttpClient($loop, $httpClient, $token, 12.3);
```

At this point both loggers can be used as any other ['PSR-3'](http://www.php-fig.org/psr/psr-3/) logger.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

Copyright 2017 [Cees-Jan Kiewiet](http://wyrihaximus.net/)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance78

Regular maintenance activity

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 65.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~528 days

Recently: every ~793 days

Total

7

Last Release

212d ago

Major Versions

1.0.1 → 2.0.02017-02-04

2.0.3 → 3.0.02025-10-12

PHP version history (3 changes)1.0.0PHP ^7.0

2.0.3PHP ^7.2

3.0.0PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/147145?v=4)[Cees-Jan Kiewiet](/maintainers/WyriHaximus)[@WyriHaximus](https://github.com/WyriHaximus)

---

Top Contributors

[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (85 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (8 commits)")[![renovate-runner[bot]](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/renovate-runner[bot] "renovate-runner[bot] (7 commits)")

---

Tags

asyncasync-phphacktoberfestlogginglogglyphppsr-3reactphp

### Embed Badge

![Health badge](/badges/wyrihaximus-react-psr-3-loggly/health.svg)

```
[![Health](https://phpackages.com/badges/wyrihaximus-react-psr-3-loggly/health.svg)](https://phpackages.com/packages/wyrihaximus-react-psr-3-loggly)
```

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2222.9M248](/packages/open-telemetry-sdk)[open-telemetry/api

API for OpenTelemetry PHP.

1833.0M214](/packages/open-telemetry-api)[pagemachine/typo3-formlog

Form log for TYPO3

23225.3k6](/packages/pagemachine-typo3-formlog)[markrogoyski/simplelog-php

Powerful PSR-3 logging. So easy, it's simple.

2818.1k4](/packages/markrogoyski-simplelog-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
