PHPackages                             cspray/marked-logs - 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. cspray/marked-logs

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

cspray/marked-logs
==================

A PSR-3 Logger that will ensure all logs have their context marked with an identifier.

2.0.0(3y ago)04612MITPHPPHP ^8.1CI failing

Since Mar 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/cspray/marked-logs)[ Packagist](https://packagist.org/packages/cspray/marked-logs)[ RSS](/packages/cspray-marked-logs/feed)WikiDiscussions main Synced 3w ago

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

Marked Logs
===========

[](#marked-logs)

Provides a PSR-3 Logger decorator that ensures every logged message is marked with an identifier to easily group similar log messages and find the logs you're looking for.

Installation
------------

[](#installation)

[Composer](https://getcomposer.org) is the only supported method for installing this library.

```
composer require cspray/marked-logs

```

Usage Guide
-----------

[](#usage-guide)

Imagine a scenario where you're interacting with a RESTful API and you want to make sure you have extensive logs. Marked Logs provides a way to easily group these logs together to gain a picture for all the interactions made with the API. Let's take a look at some example code.

```
