Skip to content

Commit 992da0d

Browse files
committed
Added autocreate sql table example [skip ci]
1 parent 715a6cf commit 992da0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ If you are configuring Serilog with the `ReadFrom.AppSettings()` XML configurati
4949
<add key="serilog:using:MSSqlSever" value="Serilog.Sinks.MSSqlServer" />
5050
<add key="serilog:write-to:MSSqlServer.connectionString" value="Server=..."/>
5151
<add key="serilog:write-to:MSSqlServer.tableName" value="Logs"/>
52+
<add key="serilog:write-to:MSSqlServer.autoCreateSqlTable" value="true"/>
5253
```
5354

5455
To use a connection string from the `<connectionStrings>` element, specify its _name_ as the value of the connection string property.

0 commit comments

Comments
 (0)