Skip to content

PoShLog.Sinks.DataDog is extension module for PoShLog core library. It contains sink that publishes log messages to DataDog.

License

Notifications You must be signed in to change notification settings

cdhunt/PoShLog.Sinks.Datadog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PoShLog.Sinks.Datadog

PoShLog.Sinks.Datadog is extension module for PoShLog logging module. Contains sink that publishes log messages to DataDog.

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.Datadog, run following snippet from Powershell

Install-Module -Name PoShLog.Sinks.Datadog

Usage

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.

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 file for details.

Credits

About

PoShLog.Sinks.DataDog is extension module for PoShLog core library. It contains sink that publishes log messages to DataDog.

Topics

Resources

License

Stars

Watchers

Forks