2017 © Pedro Peláez
 

library log-minimal

travail/log-minimal

image

travail/log-minimal

travail/log-minimal

  • Thursday, May 1, 2014
  • by travail
  • Repository
  • 1 Watchers
  • 2 Stars
  • 38,228 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

\Log\Minimal

NAME

\Log\Minimal - Minimal but customizable logger., (*1)

SYNOPSIS

use \Log\Minimal;

require_once '/path/to/vendor/autoload.php';

Minimal::critf('%s', 'foo'); // 2014-01-28T17:24:34 [CRITICAL] foo at example.php line 12
Minimal::warnf('%d %s %s', 1, 'foo', $uri);
Minimal::infof('foo');
Minimal::debugf('foo') // Print if \Log\Minimal::$debug is true

INSTALLATION

To install this package into your project via composer, add the following snippet to your composer.json. Then run composer install., (*2)

"require": {
    "travail/log-minimal": "dev-master"
}

If you want to install from github, add the following:, (*3)

"repositories": [
    {
        "type": "vcs",
        "url": "git@github.com:travail/php-Log-Minimal.git"
    }
]

DEPENDENCIES

\Log\Minimal has the dependency on the following:, (*4)

METHODS

debugf

void debugf(string $formatd [, mixed $args [, mixed $...]]), (*5)

infof

void debugf(string $formatd [, mixed $args [, mixed $...]]), (*6)

warnf

void debugf(string $formatd [, mixed $args [, mixed $...]]), (*7)

critf

void debugf(string $formatd [, mixed $args [, mixed $...]]), (*8)

Parameters

The same as the built-in function sprintf., (*9)

ENVIRONMENT VALUES

$_ENV['LM_COLOR']

$_ENV['LM_DEBUG']

$_ENV['LM_LOG_DEVEL']

CUSTOMIZE

\Log\Minimal::$color

\Log\Minimal::$debug

\Log\Minimal::$log_level

\Log\Minimal::$print

\Log\Minimal::$trace_level

AUTHOR

travail, (*10)

THANKS TO

Masahiro Nagano , (*11)

SEE ALSO

Log::Minimal, (*12)

The Versions

01/05 2014

dev-master

9999999-dev

travail/log-minimal

  Sources   Download

PHP-3.0

The Requires

 

01/05 2014

dev-develop

dev-develop

travail/log-minimal

  Sources   Download

PHP-3.0

The Requires

 

01/05 2014

v0.1.0

0.1.0.0

travail/log-minimal

  Sources   Download

PHP-3.0

The Requires