PHP code example of openlss / func-log

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

    

openlss / func-log example snippets


dolog('This is an info message');
dolog('This is an ERROR',LOG_ERROR);
dolog('This is a warning',LOG_WARN);

$config['log']['level'] = LOG_INFO;
$config['log']['file'] = false;
$config['log']['format'] = '[%s] %s - %s'; //%s - date %s - level %s - message
$config['log']['date_format'] = 'm/d/Y g:i:sA';