2017 © Pedro Peláez
 

library logbook

Simple wrapper for interaction with Monolog's Registry

image

cruxoft/logbook

Simple wrapper for interaction with Monolog's Registry

  • Friday, July 13, 2018
  • by irwtdvoys
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 40 % Grown

The README.md

Logbook (0.1.3)

What is it?

Simple wrapper for interaction with Monolog's Registry system allowing legacy systems to benefit from modern logging., (*1)

For more complex Monolog setups with multiple channels and handlers a better solutions would be Monolog Cascade., (*2)

Installation

Can be installed using composer by running the following:, (*3)

$ composer require cruxoft/logbook

Usage

A simple but common usage of Logbook would be as follows:, (*4)

use Cruxoft\Logbook;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;

// Generate one or more handlers
$handler = new StreamHandler("./sample.log", Logger::ERROR);

// Add a log channel with specified handlers, optional processors can also be added
Logbook::add("my_log_channel", array($handler));

// Raising a log, standard monolog methods can be used eg. error() err(), addError()
Logbook::get("my_log_channel")->error("This is just an example");

The Versions

13/07 2018

dev-develop

dev-develop

Simple wrapper for interaction with Monolog's Registry

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Steve Adams

13/07 2018

dev-master

9999999-dev

Simple wrapper for interaction with Monolog's Registry

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Steve Adams

13/07 2018

0.1.3

0.1.3.0

Simple wrapper for interaction with Monolog's Registry

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Steve Adams

05/03 2018

0.1.2

0.1.2.0

Simple wrapper for interaction with Monolog's Registry

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Steve Adams

05/03 2018

0.1.1

0.1.1.0

Simple wrapper for interaction with Monolog's Registry

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Steve Adams

15/02 2018

0.1.0

0.1.0.0

Simple wrapper for interaction with Monolog's Registry

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Steve Adams