Nietzsche's Preposterous Moustache

    pino-udp

    1.0.1 • Public • Published

    pino-udp-transport

    Build Status Code Coverage

    Simple udp transport for logger Pino

    This module provides a "transport" for pino that simply forwards messages to an arbitrary socket. The socket can be UDPv4.

    You should install pino-udp for ease of use:

    $ npm install pino-udp

    Example

    const pino = require('pino');
    const udpTransport = require('pino-udp');
    
    let options = {
        level: 'info'
    };
    
    let logger = pino(options, new udpTransport({
        address: '127.0.0.1',
        port: 12201,
    }));
    
    logger.info('test to udp');

    Install

    npm i pino-udp

    DownloadsWeekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.08 kB

    Total Files

    8

    Last publish

    Collaborators

    • avatar