PHP code example of lefuturiste / logmanager

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

    

lefuturiste / logmanager example snippets



stance of 'log' class
$log = new \LogManager\Log();

//Generate log of info level
$log->info('Your log info message');

//Generate log of error level
$log->error('Your log error message');

//Generate log of success level
$log->success('Your log success message');

//Generate log of warning level
$log->warning('Your log warning message');


//default config
[
  "enabled" => true
  "folder" => "log/"
]