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

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

simpliste/log
=============

Implementation of the LoggerAwareInterface

v0.2.0(7y ago)213.9kMITPHPPHP ^7.0

Since May 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/simpliste/log)[ Packagist](https://packagist.org/packages/simpliste/log)[ Docs](https://github.com/simpliste)[ RSS](/packages/simpliste-log/feed)WikiDiscussions master Synced 3d ago

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

simpliste/log
=============

[](#simplistelog)

[![Build Status](https://camo.githubusercontent.com/117d4ec3f97a667a64a8306b03f45456b8bf5ec01ae08f299f224c084ee6a154/68747470733a2f2f7472617669732d63692e6f72672f73696d706c697374652f6c6f672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/simpliste/log)[![Code Coverage](https://camo.githubusercontent.com/a0a97170c168e2e9a85d854fd50c73e818329b9833dcb460c4193586b5edefaa/68747470733a2f2f636f6465636f762e696f2f67682f73696d706c697374652f6c6f672f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/simpliste/log)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/456b91b1ee66239ae8502c54cc19714b0bb4f65a8e35b788ff774ac518209740/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73696d706c697374652f6c6f672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/simpliste/log/?branch=master)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

> LoggerAwareTrait implementation of the LoggerAwareInterface.

With the LoggerAwareTrait you can use log functions without knowing or the logger is set. When the logger is not set a NullLogger is returned so that the code does not break.

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

[](#installation)

You can install simpliste log through [Composer](https://getcomposer.org):

```
$ composer require simpliste/log
```

You can combine this LoggerAwareTrait with anything that implements the Psr\\Log\\LoggerInterface. For example Monolog can be used.

```
$ composer require monolog/monolog
```

Usage
-----

[](#usage)

```
