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

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

psr/log
=======

Common interface for logging libraries

3.0.2(1y ago)10.4k1.2B—4.8%188[6 issues](https://github.com/php-fig/log/issues)[1 PRs](https://github.com/php-fig/log/pulls)20MITPHPPHP &gt;=8.0.0

Since Dec 21Pushed 3mo ago60 watchersCompare

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

READMEChangelog (10)DependenciesVersions (14)Used By (20)

PSR Log
=======

[](#psr-log)

This repository holds all interfaces/classes/traits related to [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md).

Note that this is not a logger of its own. It is merely an interface that describes a logger. See the specification for more details.

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

[](#installation)

```
composer require psr/log
```

Usage
-----

[](#usage)

If you need a logger, you can use the interface like this:

```
