我有一些这样的代码:
[HttpPost]
public string SomePostFromBody ( [FromForm] SomeClass obj )
{
using (_logger.BeginScope("TEST"))
{
_logger.Log(LogLevel.Critical, "Some critical error");
DoSmtClass doSmtClass = new DoSmtClass ( );
doSmtClass.DoSmt ( _logger );
}
return "SomePostFromBody" + Guid.NewGuid ( );
}
}
BeginScope始终在我的日志ConnectionId:0HLGF22CJ57E2 => RequestId:0HLGF22CJ57E2:00000001 RequestPath:/api/first => WebApplication.Controllers.FirstController.SomePostFromBody (WebApplication) => TEST
中添加类似的内容。我该如何更改此文字?