Download the PHP package proycer/logbook-symfony-bundle without Composer
On this page you can find all versions of the php package proycer/logbook-symfony-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download proycer/logbook-symfony-bundle
More information about proycer/logbook-symfony-bundle
Files in proycer/logbook-symfony-bundle
Package logbook-symfony-bundle
Short Description Centralized web log viewer for monolog logs files
License MIT
Informations about the package logbook-symfony-bundle
LogBook Symfony Bundle v0.1
LogBook is a centralized web viewer for monolog logs files. It allows you to list and view logs from local and external project, in one easy place with highlighting and level and channel filtering.
Installation
Install the package with:
Two-step Configuration
Create the routes yaml file config/routes/log_book.yaml
Create the config yaml file config/packages/log_book.yaml
Advanced Configuration
pattern
The default pattern is '/\[(?P<date>.*)\] (?P<logger>\w+).(?P<level>\w+): (?P<message>[^\[\{].*[\]\}])/'
\
You can change the regex pattern to match your log file but the pattern must include P<date>
, P<logger>
, P<level>
, and P<message>
as regex groups.
\
Example '/\[(?P<date>.+)\] (?P<logger>\w+).(?P<level>\w+): (?P<message>.*)/'
days
Setting days in the config to 0 will parse to whole log which is the default. Days set to 5 for example will parse the log until the date portion of the pattern if greater than DateTime('now') minus 5 days.
date_format
This should be the php date format of the date portion of the pattern. Default is Y-m-d\TH:i:s.uP / PHP DateFormat
levels
Override the default spelling for each level. e.g. WARNING -> WARN
Roadmap
- [x] Improve UX/UI
- [x] Live searching and filters
- [x] Update to PHP 8
- [ ] Automate installation
- [ ] Show advance traceback
- [ ] Improve logs loading (as json)
- [ ] Improve searching and filter
Thanks
- monolog/monolog
- ddtraceweb/monolog-parser
- evotodi/log-viewer-bundle
- Halfmoon front-end framework
- Tabler icons
- JetBrains Mono Font
- Dayjs plugin
Contributions
Contributions are very welcome!
Please create detailed issues and PRs.
License
This package is free software distributed under the terms of the MIT license.
All versions of logbook-symfony-bundle with dependencies
ext-json Version *