Skip to content
No description, website, or topics provided.
PHP
Branch: develop
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github adding basic files Sep 9, 2019
.idea adding basic files Sep 9, 2019
src/spresnac/logcrawlerclient #5 - removing unused import Sep 11, 2019
.gitignore #5 - use curl Sep 11, 2019
.styleci.yml Update .styleci.yml Sep 11, 2019
LICENSE basics Sep 9, 2019
README.md Update README.md Sep 11, 2019
_config.yml adding basic files Sep 9, 2019
composer.json #5 - use curl Sep 11, 2019
composer.lock #5 - use curl Sep 11, 2019

README.md

Laravel Logcrawler Client

Software License PHP from Packagist Downloads StyleCI

Requirement

You will need an account and a project on Logcrawler-Server to be able to use your logcrawler-key here 😉

Installation

First of all, require the package

composer require spresnac/logcrawler-client

Second, publish the default config file

php artisan vendor:publish --tag=logcrawlerclient-config

Configuration

Next, edit your .env so you can put your Logcrawler project key

LOG_CRAWLER_KEY="place_your_key_here"

After this, edit your /config/logging and append this at channels:

'channels' => [
    //...
    'logcrawler' => [
        'driver' => 'monolog',
        'level' => 'debug',
        'handler' => LogCrawler::class,
        'handler_with' => [
            'host' => config('logcrawler.url'),
            'key' => config('logcrawler.key'),
        ],
    ],
    //...
],

Last thing, add the logcrawler channel to your selected channel, example:

'stack' => [
    'driver' => 'stack',
    'channels' => ['daily', 'logcrawler'],
    'ignore_exceptions' => false,
],

Finally

Now, your logging to Logcrawler is enabled and you can watch your logs.

Have fun 😎

You can’t perform that action at this time.