PHP code example of nicecp / utildebug
1. Go to this page and download the library: Download nicecp/utildebug 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/ */
nicecp / utildebug example snippets
// 只适用于DAEMON进程,或者未重置请求上下文时有效
\UtilDebug\UtilDebug::getLastError();
// Config file name
\UtilDebug\UtilDebug::config('app.log');
// Notice
\UtilDebug\UtilDebug::notice("message");
\UtilDebug\UtilDebug::notice("message", new \Exception("Notice"));
// Warning
\UtilDebug\UtilDebug::warning("message");
\UtilDebug\UtilDebug::warning("message", new \Exception("Warning"));
// Error
\UtilDebug\UtilDebug::error("message");
\UtilDebug\UtilDebug::error("message", new \Exception("Error"));