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

ActiveLibrary

opxcore/log-interface
=====================

The OpxCore logger interface.

1.0.9(5y ago)1974MITPHPPHP ^7.4

Since Dec 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/opxcore/log-interface)[ Packagist](https://packagist.org/packages/opxcore/log-interface)[ Docs](https://opxcore.com)[ RSS](/packages/opxcore-log-interface/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (11)Used By (4)

Log interface
=============

[](#log-interface)

[![Build Status](https://camo.githubusercontent.com/b28571b758efc2188a2d57c75484fd51803607e21d4970d63588d7049fcde319/68747470733a2f2f7777772e7472617669732d63692e636f6d2f6f7078636f72652f6c6f672d696e746572666163652e7376673f6272616e63683d6d61696e)](https://www.travis-ci.com/opxcore/log-interface)[![Coverage Status](https://camo.githubusercontent.com/9d7aa8b70053aef6a5110f56048d2fd8faf70e65d8a811812fa36819494f3221/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6f7078636f72652f6c6f672d696e746572666163652f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/opxcore/log-interface?branch=main)[![Latest Stable Version](https://camo.githubusercontent.com/db4c938720aa3874d650de64adf4d134a1ee51958bf31f809ce271afd8c1f11c/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f6c6f672d696e746572666163652f762f737461626c65)](https://packagist.org/packages/opxcore/log-interface)[![Total Downloads](https://camo.githubusercontent.com/372690e15c37e085cc4743dc17ff2b54de3b68e7f81b76a56cbd0b2a8a1bf0eb/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f6c6f672d696e746572666163652f646f776e6c6f616473)](https://packagist.org/packages/opxcore/log-interface)[![License](https://camo.githubusercontent.com/6245c19ec1213e9ac998a80cc29d2a69b578809addb189ad79c8d1de227f1d01/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f6c6f672d696e746572666163652f6c6963656e7365)](https://packagist.org/packages/opxcore/log-interface)

This is interface for the log used in OpxCore and basics for building `PSR-3` loggers.

Installing
==========

[](#installing)

`composer require opxcore/log-interface`

Logger basics
=============

[](#logger-basics)

LogException
------------

[](#logexception)

`OpxCore\Log\Exceptions\LogException::class` is base for any logger exceptions. It extends `Psr\Log\InvalidArgumentException` for PSR-3 compatibility and should be used as is or as parent for any logger exceptions.

AbstractLogger
--------------

[](#abstractlogger)

`OpxCore\Log\AbstractLogger::class` is abstract class implementing `Psr\Log\LoggerInterface` for PSR-3 compatibility.

AbstractLogger defines several common methods to be used in loggers:

- `formatMessage(string $level, string $message, array $context = []): string`returns formatted interpolated message with log level and timestamp.
- `interpolateMessage(string $message, array $context): string`interpolates the message with content. See [PSR-3-logger-interface](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md#12-message). If `'exception'` key presents in context array and has any of `Exception::class` its stacktrace will be included to log message.
- `getTimestamp(): string` returns current timestamp in ISO8601 format.
- Log levels shorthands: `emergency()`, `alert()`, `critical()`, `error()`, `warning()`, `notice()`, `info()`, `debug()`

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 85% 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 ~5 days

Recently: every ~12 days

Total

10

Last Release

1929d ago

### Community

Maintainers

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

---

Top Contributors

[![lozovoyv](https://avatars.githubusercontent.com/u/21274927?v=4)](https://github.com/lozovoyv "lozovoyv (17 commits)")[![opxcore](https://avatars.githubusercontent.com/u/46634185?v=4)](https://github.com/opxcore "opxcore (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[api-platform/metadata

API Resource-oriented metadata attributes and factories

243.5M96](/packages/api-platform-metadata)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[flowwow/cloudpayments-php-client

cloudpayments api client

2188.2k](/packages/flowwow-cloudpayments-php-client)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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