2017 © Pedro Peláez
 

library log

Log message and determine level

image

seeren/log

Log message and determine level

  • Monday, April 2, 2018
  • by seeren
  • Repository
  • 0 Watchers
  • 0 Stars
  • 207 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Seeren\Log

Build Require Coverage Download Codacy Version, (*1)

Log message with time scale for standard levels, (*2)


Installation

Seeren\Log is a PSR-3 logger interfaces implementation, (*3)

composer require seeren/log

Seeren\Log\Logger\Daily

Log message in a Daily, Monthly or Yearly generated file with optional data slug, (*4)

use Seeren\Log\Logger\Daily;

$logger = new Daily();

By default, log folder is in /var/log, (*5)

project/
└─ var/
   └─ log/

Project directory can be specified at construction, (*6)

use Seeren\Log\Logger\Daily;

$logger = new Daily('..');

Log using levels, (*7)

use Seeren\Log\Logger\Daily;

$logger = new Daily();
$logger->log('info', 'Bob is logged');

Pass slug and context optionnaly, (*8)

use Seeren\Log\Logger\Daily;

$logger = new Daily();
$logger->log('error', 'Something happen: {message}', [
    'message' => 'Dummy message'
]);

License

This project is licensed under the MIT License, (*9)

The Versions

02/04 2018

dev-master

9999999-dev

Log message and determine level

  Sources   Download

MIT

The Requires

 

The Development Requires

logger psr-3 loglevel

31/03 2018

v1.1.5

1.1.5.0

Log message and determine level

  Sources   Download

MIT

The Requires

  • php >=7.2.0

 

The Development Requires

logger psr-3

14/06 2017

v1.1.4

1.1.4.0

Log message and determine level

  Sources   Download

MIT

The Requires

 

The Development Requires

logger psr-3 loglevel

26/05 2017

v1.1.3

1.1.3.0

Log message and determine level

  Sources   Download

MIT

The Requires

 

The Development Requires

logger psr-3

26/05 2017

v1.1.2

1.1.2.0

Log message and determine level

  Sources   Download

MIT

The Requires

 

The Development Requires

logger psr-3

25/05 2017

v1.1.1

1.1.1.0

Psr-3 implementation

  Sources   Download

MIT

The Requires

 

The Development Requires

13/10 2016

v1.0.1

1.0.1.0

Psr-3 implementation

  Sources   Download

MIT

The Requires