Download the PHP package nlappe/monolog-logdna-laravel without Composer

On this page you can find all versions of the php package nlappe/monolog-logdna-laravel. 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 monolog-logdna-laravel

LogDNA handler for Monolog

Monolog backend for logdna. This backend use logdna ingestion api.

Reason for the Fork

As everyone can see, this fork still uses the underlying curl implementation rather than Http/Guzzle way of Laravel. (which uses curl aswell, but you know...) I needed a fast, but timeout-configurable solution, so i went for a fork and adding the usual env/config handling.

Maybe i will change the curl impl to a more laravely way - but as time is always tight it might take a while.

Install

Install with compose composer require nlappe/monolog-logdna-laravel.

Usage

In yout config->logging.php add this to your 'channels' array:

    'logdna' => [
        'driver' => 'monolog',
        'level' => 'debug',
        'handler' => Nlappe\Monolog\Handler\LogdnaHandler::class,
        'handler_with' => [
            'ingestion_key' => env('LOG_DNA_API_KEY'),
            'hostname' => config('app.name'),
        ],
        'formatter' => 'default',  // ##### does not work without this!
    ],

Then configure it to be used. E.g. add it to the stack channel as an additional log target.

'channels' => [
    'stack' => [
        'driver' => 'stack',
        'channels' => ['single', 'logdna'],
        'ignore_exceptions' => false,
    ],
    ...
 ]

Config

To modify the curl timeouts create the follwoing keys in your logging.php config file:
return [
'curl_connect_timeout' => env('CURL_CONNECT_TIMEOUT', 3),
'curl_request_timeout' => env('CURL_REQUEST_TIMEOUT', 5),
]

curl_connect_timeout is responsible for the connection timeout. If curl doesnt receive any bytes in the given amount of seconds it will throw an error. curl_request_timeout is responsible for the request timeout. if the request takes longer than the specified time in seconds, it will abort and throw an error.

License

This project is licensed under LGPL3.0. See LICENSE file for details.

Versions

Version 1.x is php5 compatible version while 2.x is php7.

Test

To test the project, simply call make or make test. Everything runs in docker container.

Clean

To clean your system, call make clean. Take note that if you use the same docker images as this project, you might not want to clean. Read the Makefile for more information.


All versions of monolog-logdna-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
monolog/monolog Version >=1.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 nlappe/monolog-logdna-laravel contains the following files

Loading the files please wait ....