https://github.com/czim/laravel-json-context-logging
Custom JSON format logging for Laravel
https://github.com/czim/laravel-json-context-logging
json laravel logging logstash monolog
Last synced: 11 months ago
JSON representation
Custom JSON format logging for Laravel
- Host: GitHub
- URL: https://github.com/czim/laravel-json-context-logging
- Owner: czim
- License: mit
- Created: 2018-06-24T18:39:45.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-17T11:03:33.000Z (over 2 years ago)
- Last Synced: 2024-11-11T13:08:08.647Z (over 1 year ago)
- Topics: json, laravel, logging, logstash, monolog
- Language: PHP
- Size: 22.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[](https://travis-ci.org/czim/laravel-json-context-logging)
[](https://coveralls.io/github/czim/laravel-json-context-logging?branch=master)
# JSON Context Logging for Laravel
Wrapper package to make use of [czim/monolog-json-context](https://github.com/czim/monolog-json-context) in Laravel applications.
The aim of this package is to easily set up (separate) logging to be easily grokkable by Logstash.
## Version Compatibility
| Laravel | Package |
|:--------------|:--------|
| 5.8 and below | 0.9 |
| 6.0 and up | 1.0 |
| 9.0 | 2.0 |
| 10.0 | 3.0 |
## Changelog
[View the changelog](CHANGELOG.md).
## Installation
Via Composer:
``` bash
$ composer require czim/laravel-json-context-logging
```
Publish the configuration file:
``` bash
php artisan vendor:publish --provider="Czim\LaravelJsonContextLogging\Providers\JsonContextLoggingServiceProvider"
```
## Credits
- [All Contributors][link-contributors]
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
[ico-version]: https://img.shields.io/packagist/v/czim/laravel-json-context-logging.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/czim/laravel-json-context-logging.svg?style=flat-square
[link-packagist]: https://packagist.org/packages/czim/laravel-json-context-logging
[link-downloads]: https://packagist.org/packages/czim/laravel-json-context-logging
[link-author]: https://github.com/czim
[link-contributors]: ../../contributors