Skip to content

Extension module for PoShLog logging module. It contains a sink that writes log messages into MSSql database.

License

Notifications You must be signed in to change notification settings

PoShLog/PoShLog.Sinks.MSSqlServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PoShLog.Sinks.MSSqlServer

psgallery PowerShell Gallery psgallery Discord

PoShLog.Sinks.MSSqlServer is extension module for PoShLog logging module. Contains sink that writes log messages into MSSQL server databse.

Getting started

If you are familiar with PowerShell, skip to Installation section. For more detailed installation instructions check out Getting started wiki.

Installation

To install PoShLog.Sinks.MSSqlServer, run following snippet from owershell

Install-Module -Name PoShLog.Sinks.MSSqlServer

Usage

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

Documentation

These examples are just to get you started fast. For more detailed documentation please check wiki.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Authors

Tomáš Bouda

License

This project is licensed under the MIT License - see the LICENSE file for details.

Credits

About

Extension module for PoShLog logging module. It contains a sink that writes log messages into MSSql database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published