Download the PHP package emarketa/advanced-logger-magento2 without Composer

On this page you can find all versions of the php package emarketa/advanced-logger-magento2. 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 advanced-logger-magento2

Emarketa Advanced Logger

Version 0.4.0 (Beta) A module to send your Magento 2 logs to an Elasticsearch server or to Datadog.

This module was born from a need to centralise logs from multiple web nodes running a Magento 2 site. It currently has 3 solutions for sending logs to an external service for consumption and will capture just about everything the Monolog logger (which comes with Magento 2) handles.

Installation

Install or upgrade via Composer with the command:

composer require emarketa/advanced-logger-magento2.

Requires Magento 2 and PHP 7.0 or above.

Elasticsearch Logger

Configuration is available within the Magento 2 admin via STORES > Configuration > EMARKETA > Advanced Logger > Elasticsearch.

Configuration options:

Connection

Examples:

For HTTP Auth use the following format: http://user:[email protected]:9200

For SSL the following format: https://1.2.3.4:9200

If you need to specify a certificate file, then please add this via the command line like so:

bin/magento config:set advanced_logger/elasticsearch/cafile /full/path/to/ca.pem.

This will be passed on to the elastic/elasticsearch-php module but please note, secure connections to Elasticsearch are not yet fully tested within the context of this module.

Datadog Logger

Configuration is available within the Magento 2 admin via STORES > Configuration > EMARKETA > Advanced Logger > Datadog.

You have 2 ways to send logs to Datadog:

Via the Datadog Agent (preferred).

TIPS: You will need to configure the path to point to /path/to/your/magento/var/log/datadog.log.json

In your Datadog's PHP configuration file, you would have something like this:

You can add your own tags in this file too.

Warning: If you enable HTTP API and the agent method at the same time, and, have a running Datadog agent linked to the same account as your API key, you will get every log twice in your account.

Via HTTP API

TIP: Really, this solution is probably most useful when you want to have some temporary insight into problems with a production cluster of web nodes or you may have it enabled on a staging environment to help audit a release.

If you do have HTTP enabled permanently, then please note that you should keep the minimum log level set to WARNING or above and that all failed attempts to send a record fail silently.

Warning: If you enable http and agent methods at the same time, and, have a running Datadog agent linked to the same account, you will get every log twice in your account.

For EU accounts your API keys are available here: https://app.datadoghq.eu/account/settings#api

For US accounts your API keys are available here: https://app.datadoghq.com/account/settings#api

Licence

Released under the GNU GENERAL PUBLIC LICENSE Version 3. Please remember to accredit usage.


All versions of advanced-logger-magento2 with dependencies

PHP Build Version
Package Version
Requires magento/framework Version ^100.1|^101.0|^102.0|^103.0
php Version >=7.4.0
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 emarketa/advanced-logger-magento2 contains the following files

Loading the files please wait ...