We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Fixed doc issue serilog-mssql#408
b9e8038
Wrong variable name in code sample corrected.
Hi @mperudirectio!
Thank you for pointing this out. I fixed it in PR #409.
Cheers, Christian!
Sorry, something went wrong.
Fixed doc issue #408
c192bbd
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: