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

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

Laravel Datadog Logger

A Laravel package that provides seamless integration with Datadog's HTTP log intake API, allowing you to send your Laravel application logs directly to Datadog for centralized logging and monitoring.

Features

Installation

You can install the package via Composer:

Laravel Auto-Discovery

For Laravel 5.5+ with package auto-discovery enabled, the service provider will be automatically registered. For older versions, add the service provider to your config/app.php:

Publish Configuration (Optional)

You can publish the configuration file to customize the package settings:

This will create a config/datadog-logger.php file where you can customize the package settings.

Configuration

Environment Variables

Add the following environment variables to your .env file:

Laravel Logging Configuration

Add the Datadog logging channel to your config/logging.php:

Set Default Log Channel

Update your .env file to use the stack channel (or directly use datadog):

Usage

Once configured, you can use Laravel's standard logging methods and they will be sent to Datadog:

Log Structure

Logs sent to Datadog will include the following fields:

Datadog Regions

This package supports all Datadog regions. Make sure to use the correct intake URL for your region:

Region Intake URL
US https://http-intake.logs.datadoghq.com/api/v2/logs
EU https://http-intake.logs.datadoghq.eu/api/v2/logs
US3 https://http-intake.logs.us3.datadoghq.com/api/v2/logs
US5 https://http-intake.logs.us5.datadoghq.com/api/v2/logs

Error Handling

If the package fails to send logs to Datadog (e.g., network issues, invalid API key), it will:

  1. Not throw exceptions to avoid breaking your application
  2. Log the error to PHP's error log for debugging
  3. Continue processing other log channels in your stack

Performance Considerations

Testing

Contributing

Please see CONTRIBUTING.md for details.

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see LICENSE.md for more information.

Changelog

Please see CHANGELOG.md for more information on what has changed recently.


All versions of laravel-datadog-logger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version ^9.0|^10.0|^11.0|^12.0
monolog/monolog Version ^2.0|^3.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 maidomax/laravel-datadog-logger contains the following files

Loading the files please wait ...