PHP code example of lyzy / slog

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

    

lyzy / slog example snippets


composer 



use lyzy\SLog;

OR,'this is a error test by ::log');

SLog::debug('this is a {userName} debug',array('{userName}' => 'neeke'));

SLog::info('this is a info log');

SLog::notice('this is a notice log');

SLog::warning('your {website} was down,please {action} it ASAP!',array('{website}' => 'github.com','{action}' => 'rboot'));

SLog::error('a error log');

SLog::critical('some thing was critical');

SLog::alert('yes this is a {messageName}',array('{messageName}' => 'alertMSG'));

SLog::emergency('Just now, the house next door was completely burnt out! {note}',array('{note}' => 'it`s a joke'));