2017 © Pedro Peláez
 

library climate-logger

Use league/climate with any PSR-3 compatible project

image

duncan3dc/climate-logger

Use league/climate with any PSR-3 compatible project

  • Saturday, June 17, 2017
  • by duncan3dc
  • Repository
  • 1 Watchers
  • 1 Stars
  • 123 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 37 % Grown

The README.md

climate-logger

Use your best friend for the terminal with your favourite PSR-3 compatible projects, (*1)

Build Status Latest Version, (*2)

CLImate

Read all about CLImate here, (*3)

PSR-3

Read all about PSR-3 here, (*4)

Examples

Combine the two for simple terminal logging:, (*5)

$somethingThatLogs->setLogger(new \duncan3dc\CLImate\Logger);

By default a logger instance will hide DEBUG and log everything else, you can set a specific level like so:, (*6)

$logger = new \duncan3dc\CLImate\Logger(\Psr\Log\LogLevel::DEBUG);
$somethingThatLogs->setLogger($logger);

Advanced

You can pass your own customised instance of CLImate to the logger:, (*7)

$climate = new \League\CLImate\CLImate;
$climate->style->addCommand("debug", ["yellow", "background_black"]);
$logger = new \duncan3dc\CLImate\Logger(LogLevel::INFO, $climate);

# Now my debug information will be yellow and black
$somethingThatLogs->setLogger($logger);

## Changelog

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

The Versions

17/06 2017

0.4.0

0.4.0.0 https://github.com/duncan3dc/climate-logger

Use league/climate with any PSR-3 compatible project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

logger psr-3 command logging terminal cli colors psr3

07/01 2017

dev-master

9999999-dev https://github.com/duncan3dc/climate-logger

Use league/climate with any PSR-3 compatible project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

logger psr-3 command logging terminal cli colors psr3

15/11 2015

0.3.0

0.3.0.0 https://github.com/duncan3dc/climate-logger

Use league/climate with any PSR-3 compatible project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

logger psr-3 command logging terminal cli colors psr3

03/03 2015

0.2.0

0.2.0.0 https://github.com/duncan3dc/climate-logger

Use league/climate with any PSR-3 compatible project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

logger psr-3 command logging terminal cli colors psr3

02/03 2015

0.1.0

0.1.0.0 https://github.com/duncan3dc/climate-logger

Use league/climate with any PSR-3 compatible project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

logger psr-3 command logging terminal cli colors psr3