public class EnvironmentNameLogEntryLabelProvider : ILogEntryLabelProviderA ILogEntryLabelProvider implementation which adds the EnvironmentName to the log entry labels.
Implements
ILogEntryLabelProviderNamespace
Google.Cloud.Diagnostics.AspNetCore3Assembly
Google.Cloud.Diagnostics.AspNetCore3.dll
Constructors
EnvironmentNameLogEntryLabelProvider(IWebHostEnvironment)
public EnvironmentNameLogEntryLabelProvider(IWebHostEnvironment hostingEnvironment)Initializes a new instance of the EnvironmentNameLogEntryLabelProvider class.
| Parameter | |
|---|---|
| Name | Description |
hostingEnvironment |
IWebHostEnvironmentThe IWebHostEnvironment instance to retrieve the environment name from. |
Methods
Invoke(Dictionary<String, String>)
public void Invoke(Dictionary<string, string> labels)| Parameter | |
|---|---|
| Name | Description |
labels |
Dictionary<String, String> |