PHPackages                             qshurick/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. [Framework](/categories/framework)
4. /
5. qshurick/logger

ActiveLibrary[Framework](/categories/framework)

qshurick/logger
===============

Logger abstract layer

0.1.1(11y ago)0521PHPPHP &gt;=5.3.3

Since Aug 6Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (3)Used By (1)

Logger
======

[](#logger)

Abstract Logger engine to integrate any Logger with ZendFramework2

Usage
=====

[](#usage)

By default it can be used without additional configuration.

```
namespace some\namespace;

class MyClass {
    protected $logger;

    /** ... */

    function __construct() {
        $this->logger = \Logger\Logger::getLogger(__CLASS__);
    }

    public function doSomething() {
        /** ... */
        $this->logger->info("Something is done");
    }
}

```

Configuration
=============

[](#configuration)

Default configuration present at `config/logger.global.php` which should be copied into in one of the `config_glob_paths` ZF2 Application.

Available options
-----------------

[](#available-options)

- `adapter` — adapter class name or its alias, default value id 'monolog'
- `level` — default log level. Should be a lowercase string with one of the following values: debug|info|notice|warning|error|critical|alert|emergency
- `system` — specify default path for a log file
- `error` — specify default path for a error log
- `format` — log format, this value depends on logger adapter

**Example**

```
return array(
    "logger" => array(
        "adapter" => "\\CompanyName\\Logger\\Adapter",
        "level" => "warning",
        "system" => APPLICATION_LOG_PATH . "default.log",
        "error" => APPLICATION_LOG_PATH . "error.log",
        "format" => "[$date] [$level] [$session] $stream $message\n"
    ),
);

```

Additional options
------------------

[](#additional-options)

Also you can specify different options for each of log stream. Specified parameters are: level, path and format. All element are optional, if one of them missed system (default) value will be used.

**Example**

```
return array(
    "logger" => array(
        "my-stream-name" => array(
            "level" => "error",
            "path" => "/some/custom/path/my.log",
            "format" => "[$date] $message"
        ),
        "\\My\\Class\\ForDebug" => array(
            "level" => "debug"
        ),
        "\\Some\\Specific\\Class" => array(
            "path" => "/tmp/other.log"
        ),
    ),
);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

4301d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2393697?v=4)[Alexander Malyk](/maintainers/qshurick)[@qshurick](https://github.com/qshurick)

---

Top Contributors

[![qshurick](https://avatars.githubusercontent.com/u/2393697?v=4)](https://github.com/qshurick "qshurick (5 commits)")

---

Tags

frameworkloggingzf2

### Embed Badge

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

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

PHPackages © 2026

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