PHP code example of c00 / log

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

    

c00 / log example snippets


Log::init();
Log::debug("A debug message");
Log::error("Something went wrong!");

echo Log::getLogForView()->toString();

Url: http://example.com
IP: 127.0.0.1
ID: request_383b556e
Date: 2016-11-11 03:31:02
---------------
2016-11-11 03:31:02 DEBUG: A debug message
    D:\www\log\test\LogTest.php line: 19
2016-11-11 03:31:02 ERROR: Something went wrong!
    D:\www\log\test\LogTest.php line: 20