PoShLog.Sinks.MSSqlServer is extension module for PoShLog logging module. Contains sink that writes log messages into MSSQL server databse.
If you are familiar with PowerShell, skip to Installation section. For more detailed installation instructions check out Getting started wiki.
To install PoShLog.Sinks.MSSqlServer, run following snippet from owershell
Install-Module -Name PoShLog.Sinks.MSSqlServer
Import-Module PoShLog
Import-Module PoShLog.Sinks.MSSqlServer
New-Logger |
Add-SinkMSSqlServer -ConnectionString 'Server=.;Database=dummy;Integrated Security=SSPI;' |
Start-Logger
# Your code here
# Don't forget to close the logger
Close-Logger
These examples are just to get you started fast. For more detailed documentation please check wiki.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Tomáš Bouda
This project is licensed under the MIT License - see the LICENSE file for details.
Serilog.Sinks.MSSqlServer
- serilog/serilog-sinks-mssqlserver- Icon made by Smashicons from www.flaticon.com.