Closed mperudirectio closed 2 years ago
In this code snippet provided into the principal readme.md:
var logDB = @"Server=..."; var sinkOpts = new MSSqlServerSinkOptions(); sinkOpts.TableName = "Logs"; var columnOpts = new ColumnOptions(); columnOpts.Store.Remove(StandardColumn.Properties); columnOpts.Store.Add(StandardColumn.LogEvent); columnOpts.LogEvent.DataLength = 2048; columnOpts.PrimaryKey = options.TimeStamp; columnOpts.TimeStamp.NonClusteredIndex = true; var log = new LoggerConfiguration() .WriteTo.MSSqlServer( connectionString: logDB, sinkOptions: sinkOpts, columnOptions: columnOpts ).CreateLogger();
the object options, from which options.TimeStamp is derived, it's of unknown type and there is no instance of it in the code snippet.
options
options.TimeStamp
Can I just know what it's related to? Thank you
UPDATE Calling the variable columnOpts instead of options solved the problem. It is probably just an error due to the wrong name of the variable
columnOpts
Hi @mperudirectio!
Thank you for pointing this out. I fixed it in PR #409.
Cheers, Christian!
In this code snippet provided into the principal readme.md:
the object
options
, from whichoptions.TimeStamp
is derived, it's of unknown type and there is no instance of it in the code snippet.Can I just know what it's related to? Thank you
UPDATE Calling the variable
columnOpts
instead ofoptions
solved the problem. It is probably just an error due to the wrong name of the variable