This commit is contained in:
2021-02-20 16:36:13 +08:00
parent c9362afc9e
commit 06674cfa71
+2 -2
View File
@@ -185,9 +185,9 @@ class BaseObject implements Configure
$length = strlen('[ERROR][2021-02-20 08:32:02]:');
$message = PHP_EOL . (empty($method) ? '' : $method . ': ') . $message;
$message = (empty($method) ? '' : $method . ': ') . $message;
echo "\033[41;37m[ERROR][" . date('Y-m-d H:i:s') . ']: ' .
echo "\033[41;37m[ERROR][" . date('Y-m-d H:i:s') . ']: ' . PHP_EOL .
str_pad($message, $length, ' ', STR_PAD_LEFT) . "\033[0m";
echo PHP_EOL;
}