mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
Fix #1129
This commit is contained in:
16
composer.lock
generated
16
composer.lock
generated
@@ -1177,16 +1177,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "zhamao/logger",
|
"name": "zhamao/logger",
|
||||||
"version": "1.1.4",
|
"version": "1.1.6",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/zhamao-robot/zhamao-logger.git",
|
"url": "https://github.com/zhamao-robot/zhamao-logger.git",
|
||||||
"reference": "b28c0c26d59d58f153c764f224c21c5901213e25"
|
"reference": "ac5fa59428165d252566bb50c2f558fe871b7686"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/zhamao-robot/zhamao-logger/zipball/b28c0c26d59d58f153c764f224c21c5901213e25",
|
"url": "https://api.github.com/repos/zhamao-robot/zhamao-logger/zipball/ac5fa59428165d252566bb50c2f558fe871b7686",
|
||||||
"reference": "b28c0c26d59d58f153c764f224c21c5901213e25",
|
"reference": "ac5fa59428165d252566bb50c2f558fe871b7686",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -1230,19 +1230,19 @@
|
|||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "jerry",
|
"name": "jerry",
|
||||||
"email": "admin@zhamao.me"
|
"email": "github@cwcc.me"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sunxyw",
|
"name": "sunxyw",
|
||||||
"email": "dev@sunxyw.xyz"
|
"email": "dev@sunxyw.xyz"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Another Console Logger for CLI Applications",
|
"description": "Another Colorful Console Logger for CLI Applications",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/zhamao-robot/zhamao-logger/issues",
|
"issues": "https://github.com/zhamao-robot/zhamao-logger/issues",
|
||||||
"source": "https://github.com/zhamao-robot/zhamao-logger/tree/1.1.4"
|
"source": "https://github.com/zhamao-robot/zhamao-logger/tree/1.1.6"
|
||||||
},
|
},
|
||||||
"time": "2025-11-08T15:38:01+00:00"
|
"time": "2026-05-06T06:47:06+00:00"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"packages-dev": [
|
"packages-dev": [
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ GlobalEnvManager::init();
|
|||||||
// init console logger
|
// init console logger
|
||||||
global $ob_logger;
|
global $ob_logger;
|
||||||
ConsoleLogger::$date_format = 'H:i:s';
|
ConsoleLogger::$date_format = 'H:i:s';
|
||||||
ConsoleLogger::$format = '[%date% %level%] %body%';
|
ConsoleLogger::$format = '[%date% %level_long%] %body%';
|
||||||
$ob_logger = new ConsoleLogger(LogLevel::WARNING);
|
$ob_logger = new ConsoleLogger(LogLevel::WARNING);
|
||||||
|
|
||||||
// setup log file
|
// setup log file
|
||||||
|
|||||||
Reference in New Issue
Block a user