PHP code example of loghouse-io / loghouse-laravel

1. Go to this page and download the library: Download loghouse-io/loghouse-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

loghouse-io / loghouse-laravel example snippets


'channels' => [
        ...
        'loghouse' => [
            'driver' => 'custom',
            'via' => \LoghouseIo\LoghouseLaravel\LoghouseLaravelFactory::class
        ]

'channels' => [
        ...
        'stack' => [
            'driver' => 'stack',
            'channels' => [...,'loghouse'],
            ...
        ]

'channels' => [
        ...
        'loghouse_api' => [
            'driver' => 'custom',
            'via' => \LoghouseIo\LoghouseLaravel\LoghouseLaravelFactory::class,
            'bucket_id' => ${bucket_id}
        ]

Log::channel('loghouse_api')->warning('Api log');