2017 © Pedro PelĂĄez
 

library slf4psrlog

Simple Logging Facade for Loggers implementing PSR-3 logging interface.

image

bitexpert/slf4psrlog

Simple Logging Facade for Loggers implementing PSR-3 logging interface.

  • Monday, December 25, 2017
  • by shochdoerfer
  • Repository
  • 12 Watchers
  • 3 Stars
  • 4,750 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

slf4psrlog

The Simple Logging Facade for PSR-3 loggers serves as a simple facade or abstraction for the various logging frameworks implementing the PSR-3 logging standard. To achieve true interoperability, your own code should not depend on a specific library implementing the PSR-3 logging standard., (*1)

Build Status Coverage Status Mastodon Follow, (*2)

Installation

The preferred way of installing bitexpert/slf4psrlog is through Composer. Simply add bitexpert/slf4psrlog as a dependency:, (*3)

composer.phar require bitexpert/slf4psrlog

Example

Configure a callable to return a logger instance:, (*4)

    \bitExpert\Slf4PsrLog\LoggerFactory::registerFactoryCallback(function($channel) {
        // return configured PSR-3 logger instance
    });

In your classes create a logger instance by calling:, (*5)

     $logger = \bitExpert\Slf4PsrLog\LoggerFactory::getLogger(__CLASS__);

The \bitExpert\Slf4PsrLog\LoggerFactory will delegate the call to the callback function which needs to return an instance of a PSR-3 logger., (*6)

License

slf4psrlog is released under the Apache 2.0 license., (*7)

The Versions

25/12 2017

dev-master

9999999-dev

Simple Logging Facade for Loggers implementing PSR-3 logging interface.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

19/06 2016

dev-release/r0.1.0

dev-release/r0.1.0

Simple Logging Facade for Loggers implementing PSR-3 logging interface.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

18/10 2015

0.1.3

0.1.3.0

Simple Logging Facade for Loggers implementing PSR-3 logging interface.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires