Download the PHP package myli/laravel-datadog-logger without Composer

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

X

Build Status GitHub release Total Downloads License

Getting started

Simply launch this command in your root laravel project :

composer require myli/laravel-datadog-logger

I would highly suggest you to use the DataDog Agent Style rather than the Api Style because one laravel log = one api call which is bad for performances.

1) How to use in DataDog Agent Style (Example for an ubuntu installation)

1) Firstly, install the agent by following this guide here

1) Please fill in your .env the following values:

   DATADOG_STORAGE_PATH="logs/laravel-json-datadog.log"
   DATADOG_PERMISSIONS=0644 // Default to 0644 if no value provided
   DATADOG_LEVEL="info" // Default to info if no value provided
   DATADOG_BUBBLE=true // Default to true if no value provided

3) Add LOG_CHANNEL="datadog-agent" in your .env file OR include datadog-agent channel into your stack log channel. 4) Enable logs by setting logs_enabled: true in the default /etc/datadog-agent/datadog.yaml file on the server where the project is hosted. 5) Choose only one config between those 3 files to put in /etc/datadog-agent/conf.d/laravel.d/ (create the laravel.d folder if it doesn't exist) : 1) Logging only php-cli 2) Logging only php-fpm 3) Logging php-fpm and php-cli 6) Restart your DataDog Agent and watch your result here.

Notes: At this time the source metadata from the DataDogFormatter is not taken care by DataDog so that's why we are specifying it in the /etc/datadog-agent/conf.d/laravel.d/conf.yaml file.

2) How to use in API Style

1) Please fill in your .env the following values (How to obtain ApiKey ?) :

DATADOG_API_KEY="YOUR_API_KEY" DATADOG_REGION="eu|us" // Default to eu if no value provided DATADOG_LEVEL="info" // Default to info if no value provided DATADOG_BUBBLE=true // Default to true if no value provided

2) And finally add LOG_CHANNEL="datadog-api" in your .env file OR include datadog-api channel into your stack log channel.

If you ❤️ open-source software, give the repos you use a ⭐️.

We have included the awesome symfony/thanks composer package as a dev dependency. Let your OS package maintainers know you appreciate them by starring the packages you use. Simply run composer thanks after installing this package. (And not to worry, since it's a dev-dependency it won't be installed in your live environment.)

License

The Laravel DataDog Logger is open-sourced software licensed under the MIT license.

Repository proudly created by


All versions of laravel-datadog-logger with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
laravel/framework Version ^5.6|^5.7|^5.8|^6.0|^7.0|^8.0
guzzlehttp/guzzle Version ^6.0|^7.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 myli/laravel-datadog-logger contains the following files

Loading the files please wait ....