10 references to GetLogFormat
Aspire.Dashboard (1)
Components\Controls\StructuredLogDetails.razor.cs (1)
82TextVisualizerFormat = TextVisualizerFormatHelpers.GetLogFormat(a.Key, _viewModel.LogEntry.Scope.Name, _viewModel.LogEntry.Attributes)
Aspire.Dashboard.Tests (9)
Model\TextVisualizerFormatHelpersTests.cs (9)
69Assert.Equal(DashboardUIHelpers.SqlFormat, TextVisualizerFormatHelpers.GetLogFormat("commandText", source, [])); 83Assert.Null(TextVisualizerFormatHelpers.GetLogFormat("commandText", source, [])); 84Assert.Null(TextVisualizerFormatHelpers.GetLogFormat("db.query.text", source, [])); 85Assert.Null(TextVisualizerFormatHelpers.GetLogFormat("sql", source, [])); 102Assert.Equal(expectedFormat, TextVisualizerFormatHelpers.GetLogFormat(name, source, [KeyValuePair.Create(systemKey, system)])); 110Assert.Null(TextVisualizerFormatHelpers.GetLogFormat("db.query.text", "MyApp.Database", [KeyValuePair.Create(systemKey, "")])); 116Assert.Null(TextVisualizerFormatHelpers.GetLogFormat("db.query.text", "MyApp.Database", [KeyValuePair.Create("service.name", "postgresql")])); 126Assert.Equal(expectedFormat, TextVisualizerFormatHelpers.GetLogFormat("db.query.text", "MyApp.Database", 142Assert.Equal(expectedFormat, TextVisualizerFormatHelpers.GetLogFormat(name, "Microsoft.EntityFrameworkCore.Database.Command",