Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ILogger<T> for webjob extensions #22362

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

JoshLove-msft
Copy link
Member

Fixes #22208

@@ -28,7 +28,7 @@ internal QueueProcessorOptions(QueueClient queue, ILoggerFactory loggerFactory,
{
Queue = queue ?? throw new ArgumentNullException(nameof(queue));
PoisonQueue = poisonQueue;
Logger = loggerFactory?.CreateLogger(LogCategories.CreateTriggerCategory("Queue"));
Logger = loggerFactory?.CreateLogger<QueueProcessor>();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentionally used QueueProcessor rather than QueueProcessorOptions as that fits better with the usage.

@kasobol-msft
Copy link
Contributor

/azp run net - storage - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@JoshLove-msft
Copy link
Member Author

/azp run net - eventhub - tests

@JoshLove-msft
Copy link
Member Author

/azp run net - eventgrid - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@JoshLove-msft JoshLove-msft merged commit f70749e into Azure:main Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Event Grid Event Hubs Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verify log categories of extension loggers
4 participants