54 instantiations of LogPropertiesAttribute
Microsoft.Extensions.Telemetry.Abstractions.Tests (3)
Logging\LogPropertiesAttributeTests.cs (3)
13var lpa = new LogPropertiesAttribute(); 23var lpa = new LogPropertiesAttribute(); 33var lpa = new LogPropertiesAttribute();
Microsoft.Gen.Logging.Generated.Tests (51)
test\Generators\Microsoft.Gen.Logging\TestClasses\AtSymbolsTestExtensions.cs (2)
34internal static partial void M3(ILogger logger, LogLevel level, [LogProperties] SpecialNames @event); 40internal static partial void M5(ILogger logger, LogLevel level, [LogProperties(OmitReferenceName = true)] SpecialNames @event);
test\Generators\Microsoft.Gen.Logging\TestClasses\DataClassificationTestExtensions.cs (1)
29public static partial void M2(ILogger logger, [LogProperties] C1 p1, [PrivateData] C1 p2);
test\Generators\Microsoft.Gen.Logging\TestClasses\FormattableTestExtensions.cs (1)
15public static partial void Method2(ILogger logger, [LogProperties] ComplexObj p1);
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesExtensions.cs (21)
55[LogProperties] 67[LogProperties] 98[LogProperties] 101[LogProperties] 106[LogProperties] 168[LogProperties] 171[LogProperties] 174[LogProperties] 177[LogProperties] 180[LogProperties] 187[LogProperties] 200[LogProperties] 210[LogProperties] 215public static partial void LogFunc(ILogger logger, string classToLog_StringProperty_1, [LogProperties] MyDerivedClass classToLog); 228public static partial void LogMethodTwoParams(ILogger logger, string StringProperty, [LogProperties] ClassAsParam? complexParam); 231public static partial void LogMethodStruct(ILogger logger, [LogProperties] MyCustomStruct structParam); 234public static partial void LogMethodNullableStruct(ILogger logger, [LogProperties] in MyCustomStruct? structParam); 237public static partial void LogMethodExplicitNullableStruct(ILogger logger, [LogProperties] Nullable<MyCustomStruct> structParam); 240public static partial void LogMethodNullablePropertyInClassMatchesNonNullable(ILogger logger, [LogProperties] MyClassWithNullableProperty classWithNullablePropertyParam); 243public static partial void LogMethodDefaultAttrCtor(ILogger logger, LogLevel level, [LogProperties] ClassAsParam? complexParam); 246public static partial void LogMethodInterfaceArg(ILogger logger, [LogProperties] IMyInterface complexParam);
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesNullHandlingExtensions.cs (2)
39public static partial void M0(ILogger logger, [LogProperties] MyProps p); 42public static partial void M1(ILogger logger, [LogProperties(SkipNullProperties = true)] MyProps p);
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesOmitParameterNameExtensions.cs (2)
18public static partial void M0(ILogger logger, [LogProperties(OmitReferenceName = true)] MyProps p); 29[LogProperties(OmitReferenceName = true)] MyProps param);
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesRecordExtensions.cs (3)
29public static partial void LogRecordClass(ILogger logger, [LogProperties] MyRecordClass p0); 32public static partial void LogRecordStruct(ILogger logger, [LogProperties] MyRecordStruct p0); 35public static partial void LogReadonlyRecordStruct(ILogger logger, [LogProperties] MyReadonlyRecordStruct p0);
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesRedactionExtensions.cs (6)
43[LogProperties] 56public static partial void LogNoParams(ILogger logger, [LogProperties] ClassToRedact classToLog); 61[PrivateData] string stringProperty, [LogProperties] MyTransitiveClass? complexParam); 66[LogProperties] ClassToRedact classToLog); 71[PrivateData] string stringProperty, [LogProperties] MyTransitiveClass? complexParam); 77[LogProperties] ClassWithPrivateData param);
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesSimpleExtensions.cs (1)
26public static partial void LogFunc(ILogger logger, string p0, [LogProperties] MyProps myProps);
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesSpecialTypesExtensions.cs (1)
44public static partial void M0(ILogger logger, [LogProperties] MyProps p);
test\Generators\Microsoft.Gen.Logging\TestClasses\NonSensitiveRecordExtensions.cs (1)
21public static partial void LogUser(ILogger logger, [LogProperties] User user);
test\Generators\Microsoft.Gen.Logging\TestClasses\NonStaticTestClass.cs (3)
32internal partial void LogProperties(string p0, [LogProperties] ClassToLog p1); 42[LogProperties] LogPropertiesRedactionExtensions.MyBaseClassToRedact p1); 54[LogProperties] LogPropertiesRedactionExtensions.MyBaseClassToRedact p1);
test\Generators\Microsoft.Gen.Logging\TestClasses\SensitiveRecordExtensions.cs (2)
78[LogProperties] RecordWithSensitiveMembers data); 83[LogProperties] RecordWithSensitiveMembers data);
test\Generators\Microsoft.Gen.Logging\TestClasses\TagProviderExtensions.cs (1)
39[LogProperties] ClassToLog param1,
test\Generators\Microsoft.Gen.Logging\TestClasses\TransitiveTestExtensions.cs (4)
38public static partial void M0(ILogger logger, [LogProperties(Transitive = true)] C0 p0); 41public static partial void M1(ILogger logger, [LogProperties(Transitive = false)] C0 p0); 44public static partial void M2(ILogger logger, [LogProperties(Transitive = true)] C2 p0); 47public static partial void M3(ILogger logger, [LogProperties(Transitive = true)] C3 p0);
4 references to LogPropertiesAttribute
Microsoft.Extensions.Telemetry.Abstractions.Tests (3)
Logging\LogPropertiesAttributeTests.cs (3)
13var lpa = new LogPropertiesAttribute(); 23var lpa = new LogPropertiesAttribute(); 33var lpa = new LogPropertiesAttribute();
Microsoft.Gen.Logging.Unit.Tests (1)
ParserTests.LogProperties.cs (1)
480Assembly.GetAssembly(typeof(LogPropertiesAttribute))!,