зеркало из https://github.com/microsoft/Omex.git
move to standard constant
This commit is contained in:
Родитель
79b4c8618d
Коммит
dcbbc607ae
|
@ -41,11 +41,11 @@ namespace Microsoft.Omex.Extensions.Logging
|
|||
public static void LogInitializationSucceed(string serviceNameForLogging, string message = "")
|
||||
{
|
||||
string logMessage = $"Initialization successful for {serviceNameForLogging}, {message}";
|
||||
#if Net_Standard
|
||||
#if NET5_0_OR_GREATER
|
||||
ServiceInitializationEventSource.Instance.LogHostBuildSucceeded(Environment.ProcessId, serviceNameForLogging, logMessage);
|
||||
#else
|
||||
using Process process = Process.GetCurrentProcess();
|
||||
ServiceInitializationEventSource.Instance.LogHostBuildSucceeded(process.Id, serviceNameForLogging, logMessage);
|
||||
#else
|
||||
ServiceInitializationEventSource.Instance.LogHostBuildSucceeded(Environment.ProcessId, serviceNameForLogging, logMessage);
|
||||
#endif
|
||||
Instance.LogInformation(Tag.Create(), logMessage);
|
||||
}
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
<PropertyGroup>
|
||||
<TargetFrameworks>$(LibraryTargetFrameworks)</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="$(TargetFramework.StartsWith(`netstandard`))">
|
||||
<DefineConstants>$(DefineConstants);Net_Standard</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="NuGet Properties">
|
||||
<Title>Microsoft.Omex.Extensions.Logging</Title>
|
||||
<Summary>Microsoft Omex Extensions Logging</Summary>
|
||||
|
|
Загрузка…
Ссылка в новой задаче