You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't want to use Properties column for MSSQL and want to have a single column with machine name and have it's value in the table.
I tried below to retrieve machine name and other properties:
var machineName = new LoggerConfiguration().Enrich.WithMachineName().ToString();
var environmentUserName = new LoggerConfiguration().Enrich.WithEnvironmentUserName().ToString();
var environmentName = new LoggerConfiguration().Enrich.WithEnvironmentName().ToString();
var threadID = new LoggerConfiguration().Enrich.WithThreadId().ToString();
var threadName = new LoggerConfiguration().Enrich.WithThreadName().ToString();
var processID = new LoggerConfiguration().Enrich.WithProcessId().ToString();
var processName = new LoggerConfiguration().Enrich.WithProcessName().ToString();
However, in database they are not coming right and even in variable:
Is there any possibility that I get them in variable and insert in to custom columns of my own ?
The text was updated successfully, but these errors were encountered:
I don't want to use Properties column for MSSQL and want to have a single column with machine name and have it's value in the table.
I tried below to retrieve machine name and other properties:
However, in database they are not coming right and even in variable:
Is there any possibility that I get them in variable and insert in to custom columns of my own ?
The text was updated successfully, but these errors were encountered: