che / log-stock
Static Logger Manager
Installs: 44 781
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.2
Requires (Dev)
- monolog/monolog: 1.0.*
- phpunit/phpunit: 3.7.*
Suggests
- monolog/monolog: 1.2.*
This package is not auto-updated.
Last update: 2024-10-26 12:39:34 UTC
README
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
- Symfony2 - LogStockBundle.
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.