Skip to content

penske-media-corp/winston-udp-transport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

winston-udp-transport

Transport for winston logger to write logs via UDP

Usage

import { UDPTransport } from 'winston-udp-transport';

...

const options = {
    host: <host>,
    port: <port>,
    node_name: <this_node_name>,
    appName: <your_app_name>,
    level: <minimum_logging_level>,
    ...
}

winston.add(UDPTransport, options);
transports.push(new UDPTransport(options));

License

MIT