Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madbob/laravel-log2rss
Laravel logs published in RSS
https://github.com/madbob/laravel-log2rss
laravel logs rss
Last synced: about 2 months ago
JSON representation
Laravel logs published in RSS
- Host: GitHub
- URL: https://github.com/madbob/laravel-log2rss
- Owner: madbob
- License: gpl-3.0
- Created: 2017-11-26T23:58:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T16:23:40.000Z (about 2 years ago)
- Last Synced: 2024-05-06T02:03:09.200Z (8 months ago)
- Topics: laravel, logs, rss
- Language: PHP
- Size: 26.4 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Laravel Log2Rss
===============This package generates an handy RSS feed from the Laravel logs.
Under the hood, extends Raphaël Huchet's [Laravel Log Viewer](https://github.com/rap2hpoutre/laravel-log-viewer) to extract logs from filesystem.
# Installation
```
composer require madbob/laravel-log2rss
php artisan vendor:publish --tag=log2rss-config
```By defalt, the log is published in yourbaseurl.com/logs (is it suggested to include a prefix to your route, see below).
# Usage
In the `config/log2rss.php` file you find a few options.
* middleware: array of middleware groups to handle the RSS requests. You can use this to protect the route, enforce some cache or whatever. Default: [] (empty)
* prefix: by default the URL to which RSS is published is `/logs`, and you can here define a prefix for it (perhaps some random string, or even a substring of `env('APP_KEY')`, to hide the path and make it a little less accessible even without having to implement authenticated access in a middleware). Default: '' (empty)
* log_level: minimum log level for the items to include into the feed. Default: warning
* limit: limit of items to include into the feed. Default: 20Please note this package doesn't performs well with Laravel's `single` logging channel, as it generates files too large to be handled and are rejected by [Laravel Log Viewer](https://github.com/rap2hpoutre/laravel-log-viewer). The adoption of `daily` channel is suggested.
# License
This code is free software, licensed under the The GNU General Public License version 3 (GPLv3). See the LICENSE.md file for more details.
Copyright (C) 2022 Roberto Guido