Skip to content

Commit 8afa921

Browse files
committed
PR feedback
1 parent 8a533ac commit 8afa921

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Worker/Core/Logs.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ static partial class Logs
3636
public static partial void ActivityFailed(this ILogger logger, Exception ex, string instanceId, string name);
3737

3838
/// <summary>
39-
/// Creates a logger named "Microsoft.DurableTask.Worker" with the specified subcategories.
39+
/// Creates a logger named "Microsoft.DurableTask.Worker" with an optional subcategory.
4040
/// </summary>
4141
/// <param name="loggerFactory">The logger factory to use to create the logger.</param>
42-
/// <param name="subcategories">The subcategory of the logger. For example, "Activities" or "Orchestrations".
42+
/// <param name="subcategory">The subcategory of the logger. For example, "Activities" or "Orchestrations".
4343
/// </param>
4444
/// <returns>The generated <see cref="ILogger"/>.</returns>
45-
internal static ILogger CreateWorkerLogger(ILoggerFactory loggerFactory, string? subcategories = null)
45+
internal static ILogger CreateWorkerLogger(ILoggerFactory loggerFactory, string? subcategory = null)
4646
{
4747
string categoryName = "Microsoft.DurableTask.Worker";
48-
if (!string.IsNullOrEmpty(subcategories))
48+
if (!string.IsNullOrEmpty(subcategory))
4949
{
50-
categoryName += "." + subcategories;
50+
categoryName += "." + subcategory;
5151
}
5252

5353
return loggerFactory.CreateLogger(categoryName);

0 commit comments

Comments
 (0)