PHP code example of q00n / qlogger

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

    

q00n / qlogger example snippets

 bash
php artisan vendor:publish --tag="qlogger-config"
 php
$data = $request->name;

QLogger::save($data, 'Input Data');
 php
QLogger::save($data[, $mark]); // save passed data with 'NOTICE' level of importance
QLogger::info($data[, $mark]); // save passed data with 'INFO' level of importance
QLogger::danger($data[, $mark]); // save passed data with 'DANGER' level of importance
QLogger::success($data[, $mark]); // save passed data with 'SUCCESS' level of importance

QLogger::request($key); // save data from Request::all($key)
QLogger::input($key); // save data from Request::input($key)
QLogger::json($key); // save data from Request::json($key)
QLogger::post($key); // save data from $_POST[$key]
QLogger::get($key); // save data from $_GET[$key]
QLogger::php(); // save data from Request::getContent()
QLogger::server($key); // save data from $_SERVER[$key]
QLogger::cookies($key); // save data from Request::cookie($key)
QLogger::headers($key); // save data from Request::header($key)