Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cdhunt/poshlog.sinks.datadog
PoShLog.Sinks.DataDog is extension module for PoShLog core library. It contains sink that publishes log messages to DataDog.
https://github.com/cdhunt/poshlog.sinks.datadog
datadog poshlog powershell serilog serilog-sink
Last synced: 19 days ago
JSON representation
PoShLog.Sinks.DataDog is extension module for PoShLog core library. It contains sink that publishes log messages to DataDog.
- Host: GitHub
- URL: https://github.com/cdhunt/poshlog.sinks.datadog
- Owner: cdhunt
- License: mit
- Created: 2022-11-07T14:12:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T14:28:10.000Z (about 2 years ago)
- Last Synced: 2024-10-28T10:21:10.945Z (2 months ago)
- Topics: datadog, poshlog, powershell, serilog, serilog-sink
- Language: PowerShell
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PoShLog.Sinks.Datadog
PoShLog.Sinks.Datadog is extension module for [PoShLog](https://github.com/PoShLog/PoShLog) logging module. Contains sink that publishes log messages to DataDog.
## Getting started
If you are familiar with PowerShell, skip to [Installation](#installation) section. For more detailed installation instructions check out [Getting started](https://github.com/PoShLog/PoShLog/wiki/Getting-started) wiki.
### Installation
To install PoShLog.Sinks.Datadog, run following snippet from Powershell
```ps1
Install-Module -Name PoShLog.Sinks.Datadog
```## Usage
```ps1
Import-Module PoShLog
Import-Module PoShLog.Sinks.Datadog$conf = New-SinkDataDogConfiguration -Url "https://http-intake.logs.us3.datadoghq.com"
New-Logger |
Add-SinkPowerShell -RestrictedToMinimumLevel Information |
Add-SinkDataDog -ApiKey 123ABC -Environment local -Configuration $conf -Service MyServiceName -Source PoShLog -RestrictedToMinimumLevel Debug |
Start-Logger# 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](https://github.com/PoShLog/PoShLog/wiki).
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## Authors
Chris Hunt
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Credits
* Icon made by [Smashicons](https://smashicons.com/) from [www.flaticon.com](https://www.flaticon.com/).