
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
winston-tcp
Advanced tools
TCP transport for Winston
npm install --only=production --save winston-tcp
import Transport from 'winston-tcp'
let logger = new (winston.Logger)({
transports: [
new (Transport)({
host: '127.0.0.1',
port: 1337,
json: true,
timestamp: true
})
]
})
logger.log('info', 'foo')
or simply:
import winston from 'winston'
import Transport from 'winston-tcp'
winston.add(new Transport({
host: '127.0.0.1',
port: 1337
}))
winston.info('foo')
Name | Description | Default |
---|---|---|
host | The host to connect to | none |
port | The server port to connect to | none |
reconnectInterval | Time to pause between disconnect and reconnect (in ms) | 1000 |
bufferLength | Number of messages to buffer while disconnected, set to false for unlimited | 10000 |
json | If true , messages will be logged as JSON | false |
timestamp | flag indicating if we should prepend output with timestamps | false |
formatter | a custom formatter (see Winston docs) | none |
:copyright: ahmadnassri.com · License: ISC · Github: @ahmadnassri · Twitter: @ahmadnassri
FAQs
TCP transport for Winston
The npm package winston-tcp receives a total of 369 weekly downloads. As such, winston-tcp popularity was classified as not popular.
We found that winston-tcp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.