Majesko / laravel-log-channels by Majesko

Extended laravel logger with pseudo channels that are based on monolog handlers
2,433
0
2
Package Data
Maintainer Username: Majesko
Maintainer Contact: majesko@gmail.com (Vasily Boriskin)
Package Create Date: 2017-02-15
Package Last Update: 2017-07-17
Language: PHP
License: MIT
Last Refreshed: 2024-11-24 03:03:00
Package Statistics
Total Downloads: 2,433
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Library for organization pseudo logging channels in laravel 5.1+ applications

Installation steps

  1. Add to composer required section "majesko/logger": "1.0.*"
  2. Add LoggerServiceProvider into service provider section of app.php
  3. Publish config file with command php artisan vendor:publish --tag="logger"
  4. 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