PHPackages                             svile/pilog - 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. svile/pilog

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

svile/pilog
===========

A simple PHP logging system which is PSR-2, PSR-3 and PSR-4 compliable.

1.0.3(11y ago)25492BSD-3-ClausePHPPHP &gt;=5.4

Since Jul 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/svile/pilog)[ Packagist](https://packagist.org/packages/svile/pilog)[ RSS](/packages/svile-pilog/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (4)Used By (0)

NOTE: This project is no longer maintained
==========================================

[](#note-this-project-is-no-longer-maintained)

Pilog
=====

[](#pilog)

A simple PHP logging system which is PSR-3 and PSR-4 compliable.

Installation via Composer
-------------------------

[](#installation-via-composer)

Simply add a dependency on `svile/pilog` to your project's `composer.json` file if you use [Composer](http://getcomposer.org/) to manage the dependencies of your project. Here is a minimal example of a `composer.json` file that just defines a development-time dependency on Pilog:

```
{
    "require": {
        "svile/pilog": "*"
    }
}

```

Usage
-----

[](#usage)

### Global

[](#global)

In order to use the global logger, you'll need to set it up first. However, non of the settings below are mandatory. If you skip the set function, the default log level will be set. If you skip the output, then nothing will be written anywhere and no exceptions will be thrown.

```
// Set the log level. Blank function call yields LogLevel::DEBUG
Svile\Pilog\Log::set(LogLevel::ERROR);
// Set the output. -> /path/to/file/mainlog.log
Svile\Pilog\Log::setOutput(new File('/path/to/file', 'mainlog'));

```

After you've set it up, you can call it from anywhere within your application

```
Svile\Pilog\Log::error('Something went terribly wrong');

```

### Local

[](#local)

Very similar the global usage, where all the settings and default values apply, except you'll need to instantiate the class here

```
// Set the log level. Blank function call yields LogLevel::DEBUG
$logger = new  Svile\Pilog\Logger(LogLevel::INFO);
$logger->setOutput(new File('/path/to/file', 'mainlog'));
// it is time to move on
$logger->notice('Start coding');

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~39 days

Total

3

Last Release

4297d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2964990?v=4)[Svilen Piralkov](/maintainers/svile)[@svile](https://github.com/svile)

---

Top Contributors

[![svile](https://avatars.githubusercontent.com/u/2964990?v=4)](https://github.com/svile "svile (11 commits)")

---

Tags

psrloggingfilepilog

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/svile-pilog/health.svg)

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

###  Alternatives

[sentry/sentry

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

1.9k247.1M335](/packages/sentry-sentry)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32134.1M3](/packages/bugsnag-bugsnag-psr-logger)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

521.1M20](/packages/apix-log)

PHPackages © 2026

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