PHPackages                             vysinsky/hipchat-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. vysinsky/hipchat-logger

ActiveLibrary

vysinsky/hipchat-logger
=======================

Simple logger class for HipChat

1.1.2(11y ago)31.5k1MITPHP

Since Aug 8Pushed 11y ago2 watchersCompare

[ Source](https://github.com/vysinsky/hipchat-logger)[ Packagist](https://packagist.org/packages/vysinsky/hipchat-logger)[ RSS](/packages/vysinsky-hipchat-logger/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

HipChat Logger
==============

[](#hipchat-logger)

[PSR-3](http://www.php-fig.org/psr/psr-3/) compatible logger class which will send you notification to your [HipChat](https://www.hipchat.com) room.

Screenshot (taken with Nette Framework's Tracy bridge)
------------------------------------------------------

[](#screenshot-taken-with-nette-frameworks-tracy-bridge)

[![Screenshot](screenshot.png)](screenshot.png)

Installation
------------

[](#installation)

Via `composer require vysinsky/hipchat-logger:@dev`

Configuration
-------------

[](#configuration)

Class `Vysinsky\HipChat\Logger` has some static properties you can use to configure:

- notifyLevels - Array of levels for which notification (HipChat's popup) is enabled
- colors - Basic colors setup based on log level. In case of unknown key yellow color will be used

Available bridges
-----------------

[](#available-bridges)

### Nette Framework ([Tracy](http://tracy.nette.org/en/))

[](#nette-framework-tracy)

For Nette there is compiler extension. Just add it to your extensions list in neon configuration:

```
hipChatLogger: Vysinsky\HipChat\Bridges\Tracy\DI\Extension

```

And add some configuration:

```
hipChatLogger:
    accessToken: yourAccessToken
    roomName: test
    filters:
        - [LoggerFilter, filterAccess]
    linkFactory: [MyLinkFactory::createLink] # Set link factory

```

Other features
--------------

[](#other-features)

### Filters

[](#filters)

You can now easilly filter messages and decide, whether message should be sent. Filters are simple callbacks which get $level, $message and $context as parameter. Filter return boolean $shouldSend. As soon as any filter returns FALSE execution is stopped.

Example (we don't want to log 404s):

```
class LoggerFilter
{
    function filterAccess($level, $message, $context)
    {
        return $level !== 'access';
    }
}
```

### Log file link factory

[](#log-file-link-factory)

You can set callback factory to Logger, which will create link to log file and send it in message if link is available.

You can set it with calling `setLinkToLogFileFactory` (only in Vysinsky\\HipChat\\Bridges\\Tracy):

```
$logger->setLinkToLogFileFactory(function(Vysinsky\HipChat\Bridges\Tracy $logger, $logPath){
	return $logger->extractLogPath($logPath);
});
```

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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 ~10 days

Total

5

Last Release

4250d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/69644ddd5d745e260aa1a2be03ef188342c1f9f3ffa9d9ca9e2e87695d5c7274?d=identicon)[vysinsky](/maintainers/vysinsky)

---

Top Contributors

[![vysinsky](https://avatars.githubusercontent.com/u/3693578?v=4)](https://github.com/vysinsky "vysinsky (13 commits)")[![mishak87](https://avatars.githubusercontent.com/u/276500?v=4)](https://github.com/mishak87 "mishak87 (1 commits)")

### Embed Badge

![Health badge](/badges/vysinsky-hipchat-logger/health.svg)

```
[![Health](https://phpackages.com/badges/vysinsky-hipchat-logger/health.svg)](https://phpackages.com/packages/vysinsky-hipchat-logger)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M16.9k](/packages/laravel-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M646](/packages/sylius-sylius)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[nutgram/nutgram

The Telegram bot library that doesn't drive you nuts

714214.9k8](/packages/nutgram-nutgram)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)

PHPackages © 2026

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