1.新增游戏实时对局日志,方便排查问题

This commit is contained in:
2026-05-29 14:46:57 +08:00
parent 4bd332a6ff
commit 2a5132d70f
4 changed files with 398 additions and 1 deletions

View File

@@ -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],
],
],
],
],
];