molajo / log
Molajo Logs: Basic PSR-3 compliant Log Package for PHP applications
Installs: 440
Dependents: 2
Suggesters: 0
Security: 0
Stars: 4
Watchers: 5
Forks: 0
Open Issues: 1
Type:molajo-package
Requires
- php: >=5.3.10
- psr/log: ~1.0
This package is auto-updated.
Last update: 2024-11-08 05:07:00 UTC
README
======= Molajo Log API
Simple, clean API for PHP applications to use with logging.
At a glance ...
First, the application connects to a Log Handler. Then, the application can use that connection to perform log operations.
Example
// 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();
Requirements and Compliance
- 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] (http://packagist.org) and installed using [Composer] (http://getcomposer.org/)
- Use github to submit pull requests and features
Install using Composer from Packagist
Step 1: Install composer in your project
curl -s https://getcomposer.org/installer | php
Step 2: Create a composer.json file in your project root
{ "require": { "Molajo/Log": "1.*" } }
Step 3: Install via composer
php composer.phar install
Author
Amy Stephen - AmyStephen@Molajo.org - http://twitter.com/AmyStephen
See also the list of contributors participating in this project.
License
Molajo Log is licensed under the MIT License - see the LICENSE
file for details