1.新增游戏实时对局日志,方便排查问题
This commit is contained in:
@@ -51,4 +51,26 @@ return [
|
||||
],
|
||||
],
|
||||
],
|
||||
/**
|
||||
* 游戏实时对局卡住诊断(独立通道):
|
||||
* - 写入 runtime/logs/game-live-stuck-YYYY-MM-DD.log,保留 7 天
|
||||
* - 由 GameLiveStuckDiagnostic 在 recoverLiveRoundState 后巡检写入
|
||||
* - 字段含 phase(卡住阶段)、db_status、stuck_sec、hint 等,便于 grep
|
||||
*/
|
||||
'game_live_stuck' => [
|
||||
'handlers' => [
|
||||
[
|
||||
'class' => Monolog\Handler\RotatingFileHandler::class,
|
||||
'constructor' => [
|
||||
runtime_path() . '/logs/game-live-stuck.log',
|
||||
7,
|
||||
Monolog\Logger::DEBUG,
|
||||
],
|
||||
'formatter' => [
|
||||
'class' => Monolog\Formatter\LineFormatter::class,
|
||||
'constructor' => [null, 'Y-m-d H:i:s', true],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user