添加功能
This commit is contained in:
@@ -154,7 +154,7 @@ public class LogController(ILogger<LogController> logger) : ControllerBase
|
||||
// 使用正则表达式解析
|
||||
var match = System.Text.RegularExpressions.Regex.Match(
|
||||
line,
|
||||
@"^\[(\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2}\.\d{3}\s+[+-]\d{2}:\d{2})\]\s+\[(\w+)\]\s+(.*)$"
|
||||
@"^\[(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3} [+-]\d{2}:\d{2})\] \[([A-Z]{3})\] (.*)$"
|
||||
);
|
||||
|
||||
if (match.Success)
|
||||
|
||||
Reference in New Issue
Block a user