Skip to content

Commit

Permalink
Remove "Microsoft-OMEX-HostLogs" source
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnol-VN committed Jan 24, 2025
1 parent 518c6a4 commit cbe8ea2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 96 deletions.
7 changes: 0 additions & 7 deletions src/Logging/InitializationLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ public static ILogger Instance
public static void LogInitializationSucceed(string serviceNameForLogging, string message = "")
{
string logMessage = $"Initialization successful for {serviceNameForLogging}, {message}";
#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);
#endif
Instance.LogInformation(Tag.Create(), logMessage);
}

Expand All @@ -63,7 +57,6 @@ public static void LogInitializationSucceed(string serviceNameForLogging, string
/// <param name="message">Message to log</param>
public static void LogInitializationFail(string serviceNameForLogging, Exception? ex = null, string message = "")
{
ServiceInitializationEventSource.Instance.LogHostFailed(ex?.ToString() ?? string.Empty, serviceNameForLogging, message);
Instance.LogError(Tag.Create(), ex, message);
}
}
Expand Down

This file was deleted.

0 comments on commit cbe8ea2

Please sign in to comment.