PHP code example of shippinno / laravel-process-log

1. Go to this page and download the library: Download shippinno/laravel-process-log 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/ */

    

shippinno / laravel-process-log example snippets


class Kernel extends ConsoleKernel
{
    // ...
 
    protected function bootstrappers()
    {
        return array_merge(
            $this->bootstrappers,
            [ProcessLog::class]
        );
    }
}

class Kernel extends HttpKernel 
{
    // ...
 
    protected function bootstrappers()
    {
        return array_merge(
            $this->bootstrappers,
            [ProcessLog::class]
        );
    }
}

[2019-01-22 15:20:13] production.INFO: Starting up process. {"command":"php artisan some:command","pid":12345} []
[2019-01-22 15:20:21] production.INFO: Shutting down process. {"command":"php artisan some:command","time":"8.258[s]","memory":"34[mb]","pid":12345} []