@@ -13,7 +13,7 @@ namespace SampleWeb.Controllers
1313 public class ValuesController : ControllerBase
1414 {
1515 private readonly ILogger < ValuesController > _logger ;
16-
16+
1717 public ValuesController ( ILogger < ValuesController > logger )
1818 {
1919 _logger = logger ;
@@ -25,7 +25,7 @@ public string Get()
2525 _logger . LogInformation ( "Get was called" ) ;
2626 return $ "[{ Activity . Current ? . Id } ] { User . Identity ? . Name } ";
2727 }
28-
28+
2929 [ HttpGet ( "advanced-topic-user" ) ]
3030 public string AdvancedTopicUser ( )
3131 {
@@ -35,18 +35,18 @@ public string AdvancedTopicUser()
3535 using ( LogContext . PushProperty ( Event . KnownDataKeys . UserInfo , new UserInfo ( User . Identity ? . Name + " Custom" , "Test User Full Name" ) , true ) ) {
3636 _logger . LogInformation ( "This log event will have a custom user set." ) ;
3737 }
38-
38+
3939 return $ "[{ Activity . Current ? . Id } ] { User . Identity ? . Name } ";
4040 }
41-
41+
4242 [ HttpGet ( "advanced-topic-user-description" ) ]
4343 public string AdvancedTopicUserDescription ( string description )
4444 {
4545 // User descriptions was intended to provide a description from an end user why an error happened.
4646 using ( LogContext . PushProperty ( Event . KnownDataKeys . UserDescription , new UserDescription ( User . Identity ? . Name , description ) , true ) ) {
4747 _logger . LogError ( new Exception ( "Test" ) , "This error event will have a user description set on it." ) ;
4848 }
49-
49+
5050 return $ "[{ Activity . Current ? . Id } ] { User . Identity ? . Name } ";
5151 }
5252 }
0 commit comments