PHP code example of ahost / logging

1. Go to this page and download the library: Download ahost/logging 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/ */

    

ahost / logging example snippets


php artisan logging:activate

protected $baselogger;

    public function __construct(BaseLogger $baselogger){
        $this->baselogger = $baselogger;
    }

$this->baselogger->init();

$this->baselogger->info('Information Log Message');