PHP code example of kdabrow / log-level

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

    

kdabrow / log-level example snippets




use Kdabrow\LogLevel\Level;

echo Level::ERROR->toLower(); // prints: error



use Kdabrow\LogLevel\Level;

if (Level::INFO->toLower() == 'info') {
    echo "is info level log";
}



use Kdabrow\LogLevel\Level;

if (Level::INFO == 6) {
    echo "is info level log";
}