Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Static Logger Factory for PHP 5.3

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 composer.json
Octocat-spinner-32 composer.lock
Octocat-spinner-32 phpunit.xml.dist
README.md

LogStock - Static Logger Manager Build Status

Logging functionality is required in all classes, so it is one of situations where static code is a good choice. Now you can create more logs with your preferred logging library.

Installation

Composer package is available.

Or just clone the repository (or download versions by tags) and include the library with PSR-0 autoloader.

Usage

namespace Acme\Foo;

use Che\LogStock\LoggerManager;

class Bar
{
    private $logger;

    public function __construct()
    {
        $this->logger = LoggerManager::getLogger(__CLASS__);
    }

    public function doSomething($param)
    {
        $this->logger->info('Do something.', array('param' => $param));
        //...
    }
}

Integration

Author

Kirill chEbba Chebunin iam@chebba.org.

License

LogStock is subject to the MIT license that is bundled with this package in the file LICENSE.

Something went wrong with that request. Please try again.