https://github.com/ozh/log
Minimalist PSR-3 logger, that logs into an array.
https://github.com/ozh/log
array log logger logging logging-library psr-3
Last synced: about 2 months ago
JSON representation
Minimalist PSR-3 logger, that logs into an array.
- Host: GitHub
- URL: https://github.com/ozh/log
- Owner: ozh
- License: mit
- Created: 2017-08-17T07:55:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-17T12:14:38.000Z (almost 9 years ago)
- Last Synced: 2025-09-17T03:57:08.597Z (10 months ago)
- Topics: array, log, logger, logging, logging-library, psr-3
- Language: PHP
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ozh\Log
A minimalist PSR-3 compliant logger, that logs into an array.
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[](https://travis-ci.org/ozh/log)
[](https://scrutinizer-ci.com/g/ozh/log/?branch=master)
[](https://scrutinizer-ci.com/g/ozh/log/?branch=master)
## Install
Via Composer
``` bash
$ composer require ozh/log
```
## Usage
``` php
use \Ozh\Log\Logger;
require '../vendor/autoload.php';
$logger = new Logger();
$logger->debug('This is a debug message');
```
See `examples/examples.php` for more examples.
This library is fully tested on PHP 5.3 to 7.2 and HHVM.
[ico-version]: https://img.shields.io/packagist/v/ozh/log.svg
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg
[link-packagist]: https://packagist.org/packages/ozh/log
[link-travis]: https://travis-ci.org/ozh/log