https://github.com/itsfadnis/datadog-winston
Ship winston logs to datadog without breaking a sweat
https://github.com/itsfadnis/datadog-winston
datadog datadog-agent winston winston-transport
Last synced: 5 months ago
JSON representation
Ship winston logs to datadog without breaking a sweat
- Host: GitHub
- URL: https://github.com/itsfadnis/datadog-winston
- Owner: itsfadnis
- License: mit
- Created: 2019-06-05T18:45:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-04T11:26:05.000Z (over 2 years ago)
- Last Synced: 2025-10-19T13:44:40.760Z (8 months ago)
- Topics: datadog, datadog-agent, winston, winston-transport
- Language: JavaScript
- Homepage:
- Size: 1.66 MB
- Stars: 36
- Watchers: 1
- Forks: 18
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://semaphoreci.com/itsfadnis/datadog-winston)
# datadog-winston
Ship winston logs to datadog without breaking a sweat
## Install
```console
$ npm install --save datadog-winston
```
or
```console
$ yarn add datadog-winston
```
## Options
- **apiKey**: Your datadog api key *[required]*
- **hostname**: The machine/server hostname
- **service**: The name of the application or service generating the logs
- **ddsource**: The technology from which the logs originated
- **ddtags**: Metadata assoicated with the logs
- **intakeRegion**: The datadog intake to use. set to `eu` to force logs to be sent to the EU specific intake
## Usage
```javascript
var winston = require('winston')
var DatadogWinston = require('datadog-winston')
var logger = winston.createLogger({
// Whatever options you need
// Refer https://github.com/winstonjs/winston#creating-your-own-logger
})
logger.add(
new DatadogWinston({
apiKey: 'super_secret_datadog_api_key',
hostname: 'my_machine',
service: 'super_service',
ddsource: 'nodejs',
ddtags: 'foo:bar,boo:baz'
})
)
```