Skip to content

Wrong server name on .net core #63

@Zeroto

Description

@Zeroto

When using NLog.Target.Stackify then the reported server name is always .. This seems to be caused by the following line:

var deviceName = Process.GetCurrentProcess().MachineName;

The documentation of Process.MachineName has the following note: When the associated process is executing on the local machine, this property returns a period (".") for the machine name
This would mean that this line will always return . because the current process will always be running on the local machine.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions