diff --git a/src/InformaticsGateway/Program.cs b/src/InformaticsGateway/Program.cs
index 67e055999..f1212ad8e 100644
--- a/src/InformaticsGateway/Program.cs
+++ b/src/InformaticsGateway/Program.cs
@@ -189,7 +189,7 @@ internal static IHostBuilder CreateHostBuilder(string[] args) =>
private static NLog.Logger ConfigureNLog(string assemblyVersionNumber)
{
- LayoutRenderer.Register("servicename", logEvent => Assembly.GetEntryAssembly()?.GetName().Name);
+ LayoutRenderer.Register("servicename", logEvent => typeof(Program).Namespace);
LayoutRenderer.Register("serviceversion", logEvent => assemblyVersionNumber);
LayoutRenderer.Register("machinename", logEvent => Environment.MachineName);
diff --git a/src/InformaticsGateway/nlog.config b/src/InformaticsGateway/nlog.config
index 33925ea64..7bd771f7e 100644
--- a/src/InformaticsGateway/nlog.config
+++ b/src/InformaticsGateway/nlog.config
@@ -1,4 +1,6 @@
-
-
-
+