PHPackages                             bufferapp/php-bufflog - 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. bufferapp/php-bufflog

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

bufferapp/php-bufflog
=====================

PHP log libraries for Buffer services

0.3.3(3y ago)114.1k[7 issues](https://github.com/bufferapp/php-bufflog/issues)[2 PRs](https://github.com/bufferapp/php-bufflog/pulls)PHPPHP &gt;=8.1

Since Dec 4Pushed 6mo agoCompare

[ Source](https://github.com/bufferapp/php-bufflog)[ Packagist](https://packagist.org/packages/bufferapp/php-bufflog)[ RSS](/packages/bufferapp-php-bufflog/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (9)Dependencies (3)Versions (17)Used By (0)

PHP BuffLog
===========

[](#php-bufflog)

PHP logger for all Buffer services

Requirements
------------

[](#requirements)

PHP 8.1 and later.

Setup BuffLog in your PHP project via Composer
----------------------------------------------

[](#setup-bufflog-in-your-php-project-via-composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require bufferapp/php-bufflog
```

Usage
-----

[](#usage)

As simple as...

```
use Buffer\BuffLog\BuffLog;

BuffLog::debug("I am a debug");
BuffLog::info("I am an info");
BuffLog::warning("I am a warning");
BuffLog::error("I am an error");
BuffLog::critical("I am a warning");
```

If you wish add more context in your logs,

```
BuffLog::debug("some context", ["my key" => " my value"]);
BuffLog::info("I am a info with context", ["my key" => " my value"]);
BuffLog::warning("I am a warning", ["duration" => "40ms"]);

BuffLog::critical("I'm critical log, here some extra fancy informations", [
                        "duration" => "40ms",
                        "services_related" => [
                            "Twitter",
                            "Facebook",
                            "Instagram"
                        ]
                    ]
                );
```

Log verbosity levels
--------------------

[](#log-verbosity-levels)

If you wish to see more logs, simply set the `LOG_LEVEL` to the desired level. Here the list with their level and their use case:

LevelsUse caseExamplesDEBUGInformation used for interactive investigation, with no long-term value. Activate it with `LOG_LEVEL=DEBUG`Printing function names, steps inside a function.INFOInteresting events. Track the general flow of the application. Activate it with `LOG_LEVEL=INFO`User logs in, SQL logs, worker process/delete a message...NOTICEUncommon events. **This is the default verbosity level**.Missing environment variables, page redirection, pod starting/restarting/terminating, retrying to query an API...WARNINGExceptional occurrences that are not errors. Undesirable things that are not necessarily wrong.Use of deprecated APIs, poor use of an API, unauthorized access, pod restart because of memory limit ...ERRORRuntime errors. Highlight when the current flow of execution is stopped due to a failure.Exceptions messages, incorect credentials or permissions...CRITICALCritical conditions. Describe an unrecoverable application, system crash, or a catastrophic failure that requires immediate attention.Application component unavailable, unexpected exception. entire website down, database unavailable ...

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 86.2% 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 ~104 days

Recently: every ~4 days

Total

12

Last Release

1208d ago

PHP version history (3 changes)0.1.1PHP ^7.1

0.3.0PHP &gt;=8.1

0.2.x-devPHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/798826?v=4)[Buffer](/maintainers/bufferapp)[@bufferapp](https://github.com/bufferapp)

---

Top Contributors

[![erickhun](https://avatars.githubusercontent.com/u/3368263?v=4)](https://github.com/erickhun "erickhun (94 commits)")[![amooabeebadesina](https://avatars.githubusercontent.com/u/19835966?v=4)](https://github.com/amooabeebadesina "amooabeebadesina (10 commits)")[![hamstu](https://avatars.githubusercontent.com/u/809093?v=4)](https://github.com/hamstu "hamstu (3 commits)")[![RafLeszczynski](https://avatars.githubusercontent.com/u/859645?v=4)](https://github.com/RafLeszczynski "RafLeszczynski (2 commits)")

### Embed Badge

![Health badge](/badges/bufferapp-php-bufflog/health.svg)

```
[![Health](https://phpackages.com/badges/bufferapp-php-bufflog/health.svg)](https://phpackages.com/packages/bufferapp-php-bufflog)
```

###  Alternatives

[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8674.9k](/packages/illuminated-console-logger)[alleyinteractive/logger

A Monolog-based logging tool for WordPress. Supports storing log message in a custom post type or in individual posts and terms.

30297.5k1](/packages/alleyinteractive-logger)

PHPackages © 2026

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