Simple, clean API for PHP applications to use with logging.
First, the application connects to a Log Handler. Then, the application can use that connection to perform log operations.
// Connect to Log Handler
use Molajo\Log\Connection;
$adapter = new Connection('Memory');
// Use connection for log operations
$adapter->log($level, $message, $context = array());
// Use connection to retrieve the entire log
$log = $adapter->get();
- PHP framework independent, no dependencies
- Requires PHP 5.3, or above
- Semantic Versioning
- Compliant with:
- [phpDocumentor2] (https://github.com/phpDocumentor/phpDocumentor2)
- [phpUnit Testing] (https://github.com/sebastianbergmann/phpunit)
- [Travis Continuous Improvement] (https://travis-ci.org/profile/Molajo)
- Listed on [Packagist] (https://packagist.org) and installed using [Composer] (https://getcomposer.org/)
- Use github to submit pull requests and features
curl -s https://getcomposer.org/installer | php
{
"require": {
"Molajo/Log": "1.*"
}
}
php composer.phar install
Amy Stephen - [email protected] - https://twitter.com/AmyStephen
See also the list of contributors participating in this project.
Molajo Log is licensed under the MIT License - see the LICENSE
file for details