You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/fundamentals/syslib-diagnostics/syslib1004.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,15 @@
1
1
---
2
2
title: SYSLIB1004 error
3
3
description: Learn about the diagnostic that generates compile-time error SYSLIB1004.
4
-
ms.date: 05/07/2021
4
+
ms.date: 09/22/2021
5
5
---
6
6
7
7
# SYSLIB1004: Logging class cannot be in a nested type
8
8
9
-
A method annotated with the `LoggerMessageAttribute` is contained in a nested type. This is not currently supported by the logging model.
9
+
A method annotated with the `LoggerMessageAttribute` is contained in a nested type. This is not supported by the logging model in Preview 4 and 5 of .NET 6.
10
+
11
+
> [!NOTE]
12
+
> Logger methods in nested classes *are supported* starting in .NET 6 Preview 6.
0 commit comments