Download the PHP package aishan/laravel-log-notice without Composer

On this page you can find all versions of the php package aishan/laravel-log-notice. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-log-notice

laravel-log-notice

本项目支持自定义laravel框架的日志行为,提供异常日志邮件自动发送功能和推送异常日志到RabbitMQ中。

安装

* 目前只在laravel5.1及以上版本测试通过

使用

  1. 在config/app.php的“providers”中加入:

  2. 拷贝配置文件到config目录:

    在根目录执行:

  3. 框架中加入配置Monolog代码

在bootstrap/app的return $app;之前加入一下代码:

* 注意:使用这个扩展后,Laravel原本的日志配置将失效,譬如config/app.php文件中关于关于日志的配置都将失效,而我们在此刻可以启用新的日志配置文件config/log-notice.php

4.配置

配置文件为config/log-notice.php:

* 其中,默认开启的为本地日志文件,邮件通知和推送消息至RabbitMQ的动作均需手动开启。

  1. 为什么消息会推送至RabbitMQ?

因为,团队生产环境用的Logstash是通过RMQ通信转发的,所以实际应用场景是将日志消息最终转入日志服务器;

2.什么样的日志会被邮件发送?

八种日志等级在系统的定义:

本扩展中的实现:

所以,debug和info的日志都不会以邮件形式发送,而往RabbitMQ中发送的日志只排除了debug类型的信息。


All versions of laravel-log-notice with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
php-amqplib/php-amqplib Version ^2.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aishan/laravel-log-notice contains the following files

Loading the files please wait ....