PHPackages                             makopov/simple-log - 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. makopov/simple-log

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

makopov/simple-log
==================

A simple log wrapper around syslog, loosely based on PSR-3

v1.0.8(10y ago)137MITPHP

Since Mar 1Pushed 10y ago1 watchersCompare

[ Source](https://github.com/makopov/simple-log)[ Packagist](https://packagist.org/packages/makopov/simple-log)[ RSS](/packages/makopov-simple-log/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

simple-log
==========

[](#simple-log)

A simple log wrapper around syslog

[![](https://camo.githubusercontent.com/0e617220388d6f8eddb963a8440efb0b5481156c2fbab6f3fdb7a8df4d99671d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d616b6f706f762f73696d706c652d6c6f672f6261646765732f6770612e737667)](https://codeclimate.com/github/makopov/simple-log)

Simple Log is a singleton class that makes logging to syslog very easy.

Get an object instance:

```
$oLogger = SLog::getInstance();
```

Configure application name (optional). If not set syslog will show 'php' as the application name. Good to do upon a bootstrap or init of applications.

```
$oLogger->setApplicationName('MyApp');
```

Now log! Using any of the 8 log level

```
$oLogger->emergency('some message');
$oLogger->alert('some message');
$oLogger->critical('some message');
$oLogger->error('some message');
$oLogger->warning('some message');
$oLogger->notice('some message');
$oLogger->info('some message');
$oLogger->debug('some message');
```

Log messages will appear in syslog (/var/log/messages). By default Simple Log will include the file name and line number of where the log was made from.

Example:

Foo.php

```
function foo() {
    $oLogger->warning('something happened');
}
```

Will show up in syslog like so:

> Feb 26 22:11:47 localhost MyApp: Foo.php:2 - something happened

Thats it! Please submit bugs as you see them. I will add tests in the near future.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

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

Total

7

Last Release

3718d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/716b705d5168671cb5c084f363a24317f05733f1bc54126f116ec9fd2afc0c0b?d=identicon)[makopov](/maintainers/makopov)

---

Top Contributors

[![makopov](https://avatars.githubusercontent.com/u/1185010?v=4)](https://github.com/makopov "makopov (14 commits)")

### Embed Badge

![Health badge](/badges/makopov-simple-log/health.svg)

```
[![Health](https://phpackages.com/badges/makopov-simple-log/health.svg)](https://phpackages.com/packages/makopov-simple-log)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.1k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M137](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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