Download the PHP package outl1ne/laravel-elastic-logger without Composer

On this page you can find all versions of the php package outl1ne/laravel-elastic-logger. 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-elastic-logger

Laravel Elastic Cloud logging for MessageLogged event.

This package will listen to the Illuminate\Log\Events\MessageLogged event and queue the log data to be sent to Elastic Kibana index by your queue handler.

It will listen to all Log events and will also handle exceptions separately.


Requirements

Dependencies


Important notice

Do not log Queue::before / after events. This will cause an infinite loop of logging and will cause your application to crash.

In general be careful about the possibility of log loops.

Tested with redis and database queue drivers.

If you're working on Google cloud, consider setting up stackkits laravel-google-cloud-tasks-queue


Installation

Install package

Configure the environment variables for the package

Make sure your queue handler is configured properly


Cheat sheet / quick guide to set up Elastic.

Elastic offers 14 day free trial.

This package will auto-generate the indexes for you based on the ELASTIC_INDEX value. It will create indexes in the pattern of: ELASTIC_INDEX + _ + d-m-Y

  1. Create an account
  2. Create a new instance.
  3. Create a new Kibana Data view. Choose a name and match the index pattern with the index name you created. Kibana allows wildcards.
Choose the "datetime" field as the Timestamp field! This is important to allow convenient filtering based on the timestamp.

Elastic is able to create a new index on the fly but you cannot change the datetime field for the timestamp later, which will result in not having a proper timestamp filter.

Save the data view and view your newly created data view in the "Discover" section in the Analytics.


What the future brings


License

This project is open-sourced software licensed under the MIT license.


All versions of laravel-elastic-logger with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/framework Version ^8.7 || ^9.0
elasticsearch/elasticsearch Version ^8.5
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 outl1ne/laravel-elastic-logger contains the following files

Loading the files please wait ....