Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@marfle/winston-transport-datadog
Advanced tools
winston
transport for Datadog logging.
There are couple of winston transports for datadog. This one does buffering, error handling and uses tls-tcp instead of https.
npm install @marfle/winston-transport-datadog
Use:
const { createLogger } = require('winston');
const { DatadogTransport } = require('@marfle/winston-transport-datadog');
logger = createLogger({
transports: [
new DatadogTransport({
apiKey: '<YOUR API KEY',
// optional metadata which will be merged with log message
metadata: {
environment: process.env.NODE_ENV,
service: 'myService'
}
})
]
});
Name | Default | Description |
---|---|---|
apiKey | undefined | api key from datadog |
host | 'intake.logs.datadoghq.com' | intake hostname |
port | 10516 | intake port |
bufferSize | 10000 | how many messages to buffer before discarding |
reconnectInterval | 10000 | |
socketOptions | { timeout: 10000 } | options passed to tls.socket |
metadata | { ddsource: 'winston' } | optional metadata which will be merged with log message |
DatadogTransport extends Transport from winston-transport
, so it's options also apply.
MIT See LICENSE file.
Marfle makes software for workboat fleets
FAQs
Datadog logging transport for winston
We found that @marfle/winston-transport-datadog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.