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

ActiveMolajo-package[Logging &amp; Monitoring](/categories/logging)

molajo/log
==========

Molajo Logs: Basic PSR-3 compliant Log Package for PHP applications

v0.2(12y ago)4441[1 PRs](https://github.com/Molajo/Log/pulls)MITPHPPHP &gt;=5.3.10

Since Nov 24Pushed 10y ago4 watchersCompare

[ Source](https://github.com/Molajo/Log)[ Packagist](https://packagist.org/packages/molajo/log)[ Docs](http://github.com/Molajo/Log)[ RSS](/packages/molajo-log/feed)WikiDiscussions master Synced 2d ago

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

======= Molajo Log API
======================

[](#molajo-log-api)

[![Build Status](https://camo.githubusercontent.com/4932109d05c1d1037b091abaf9f58abb58a00e84b3173ba0c90d09145da34b26/68747470733a2f2f7472617669732d63692e6f72672f4d6f6c616a6f2f4c6f672e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Molajo/Log)

Simple, clean API for PHP applications to use with logging.

At a glance ...
---------------

[](#at-a-glance-)

First, the application connects to a Log Handler. Then, the application can use that connection to perform log operations.

### Example

[](#example)

```
    // Connect to Log Handler
    use Molajo\Log\Connection;
    $adapter = new Connection('Memory');

    // Use connection for log operations
    $adapter->log($level, $message, $context = array());

    // Use connection to retrieve the entire log
    $log = $adapter->get();
```

### Requirements and Compliance

[](#requirements-and-compliance)

- PHP framework independent, no dependencies
- Requires PHP 5.3, or above
- [Semantic Versioning](http://semver.org/)
- Compliant with:
    - [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) and [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md) Namespacing
    - [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) Coding Standards
    - [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) Logger Interface
- \[phpDocumentor2\] ()
- \[phpUnit Testing\] ()
- \[Travis Continuous Improvement\] ()
- Listed on \[Packagist\] () and installed using \[Composer\] ()
- Use github to submit [pull requests](https://github.com/Molajo/Log/pulls) and [features](https://github.com/Molajo/Log/issues)

Install using Composer from Packagist
-------------------------------------

[](#install-using-composer-from-packagist)

### Step 1: Install composer in your project

[](#step-1-install-composer-in-your-project)

```
    curl -s https://getcomposer.org/installer | php
```

### Step 2: Create a **composer.json** file in your project root

[](#step-2-create-a-composerjson-file-in-your-project-root)

```
{
    "require": {
        "Molajo/Log": "1.*"
    }
}
```

### Step 3: Install via composer

[](#step-3-install-via-composer)

```
    php composer.phar install
```

Author
------

[](#author)

Amy Stephen -  -
See also the list of [contributors](https://github.com/Molajo/Log/contributors) participating in this project.

License
-------

[](#license)

**Molajo Log** is licensed under the MIT License - see the `LICENSE` file for details

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

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

Total

2

Last Release

4514d ago

### Community

Maintainers

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

---

Top Contributors

[![AmyStephen](https://avatars.githubusercontent.com/u/95525?v=4)](https://github.com/AmyStephen "AmyStephen (54 commits)")

---

Tags

logMolajoCommonApi

### Embed Badge

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

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

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k964.9M7.0k](/packages/monolog-monolog)[sentry/sentry

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

1.9k227.1M273](/packages/sentry-sentry)[arcanedev/log-viewer

Provides a Log Viewer for Laravel

2.4k6.7M51](/packages/arcanedev-log-viewer)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[league/tactician-logger

Adds PSR-3 logging support to the Tactician command bus

649.6M9](/packages/league-tactician-logger)[nelmio/js-logger-bundle

Adds logging of JS errors in your Symfony application

1761.2M](/packages/nelmio-js-logger-bundle)

PHPackages © 2026

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