2017 © Pedro Peláez
 

library logger-aware-trait

A PSR-3 trait allowing any class to easily add logger support

image

duncan3dc/logger-aware-trait

A PSR-3 trait allowing any class to easily add logger support

  • Thursday, April 26, 2018
  • by duncan3dc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 671 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 25 % Grown

The README.md

logger-aware-trait

A PSR-3 trait allowing any class to easily add logger support, (*1)

release build coverage, (*2)

Installing

The recommended method of installing this library is via Composer., (*3)

Run the following command from your project root:, (*4)

$ composer require duncan3dc/logger-aware-trait

Setup

Simply apply the trait to your classes:, (*5)

use duncan3dc\Log\LoggerAwareTrait;

class MyClass
{
    use LoggerAwareTrait;
}

Now the class will have a getLogger() method that you can safely call.
If a logger has been injected using setLogger() then that logger will be provided, otherwise a NullLogger will be used instead., (*6)

Changelog

A Changelog has been available since the beginning of time, (*7)

Where to get help

Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter, (*8)

duncan3dc/logger-aware-trait for enterprise

Available as part of the Tidelift Subscription, (*9)

The maintainers of duncan3dc/logger-aware-trait and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more., (*10)

The Versions

26/04 2018

dev-master

9999999-dev https://github.com/duncan3dc/logger-aware-trait

A PSR-3 trait allowing any class to easily add logger support

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

logger psr-3 logging phpfig

24/08 2017

0.2.0

0.2.0.0 https://github.com/duncan3dc/logger-aware-trait

A PSR-3 trait allowing any class to easily add logger support

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

logger psr-3 logging phpfig

05/02 2017

0.1.0

0.1.0.0 https://github.com/duncan3dc/logger-aware-trait

A PSR-3 trait allowing any class to easily add logger support

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

logger psr-3 logging phpfig