majesko / logger
Extended laravel logger with pseudo channels that are based on monolog handlers
Installs: 2 433
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.5.9
- laravel/framework: 5.*
- monolog/monolog: ~1.11
README
Installation steps
- Add to composer required section "majesko/logger": "1.0.*"
- Add LoggerServiceProvider into service provider section of app.php
- Publish config file with command php artisan vendor:publish --tag="logger"
- Uncomment or needed channels in logger.php
Useful parameters
"app_tag" is used to tag source of logs, for example in elasticsearch
"global" uses to mark application-wide log channels
##Handler variants:
"StreamWrapper" is for single file logs
"RotatingFileWrapper" is for per-day logs, so you need to configure rotation options
Formatters
Logger use plain monolog formatters