2017 © Pedro Peláez
 

package simple-logger

Simple psr3 Logger. Writes to log using PHP error_log.

image

marciodojr/simple-logger

Simple psr3 Logger. Writes to log using PHP error_log.

  • Sunday, March 18, 2018
  • by marciodojr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Simple PSR-3 Logger

Description

Just write messages to log using PHP error_log in the format:, (*1)

Log[level]: message, (*2)

Example:, (*3)

Log[error]: Resource not created, (*4)

How to install

composer require "marciodojr/simple-logger"

How to use

use Mdojr\Logger\SimpleLogger;
use Psr\Log\LogLevel;

$logger = new SimpleLogger();

$logger->log(LogLevel::ERROR, 'my log message'); // Log[error]: my log message
$logger->emergency(
    'emergency message {placeholder}', 
    ['placeholder' => 'with placeholders']
); // Log[emergency]: emergency message with placeholders

// ... any other log level specified by psr-3

How to test

    composer test

PSR-3 specification

https://www.php-fig.org/psr/psr-3/, (*5)

The Versions

18/03 2018

dev-master

9999999-dev

Simple psr3 Logger. Writes to log using PHP error_log.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Márcio Dias

18/03 2018

v1.0.2

1.0.2.0

Simple psr3 Logger. Writes to log using PHP error_log.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Márcio Dias

18/03 2018

v1.0.1

1.0.1.0

Simple psr3 Logger. Write to server log.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Márcio Dias

17/03 2018

v1.0.0

1.0.0.0

Simple psr3 Logger. Write to server log.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Márcio Dias