Nasal Piercings Manipulator

    winston-datadog-formatter

    1.0.1 • Public • Published

    CircleCI codecov Maintainability npm

    winston-datadog-formatter

    Formatting Winston logging for DataDog processing and storage

    Installation

    npm install --save winston-datadog-udp-transport
    

    Example

    The following example configures the Winston logger to use the DataDog formatter, and UDP transport to ship logs to DataDog via a local installation of the DataDog agent with UDP enabled. For more information on using UDP log shipping with the DataDog agent see winston-datadog-udp-transport

    const winston = require('winston');
    const DatadogTransport = require('datadog-transport');
    const datadogFormatter = require('datadog-formatter');
     
    const logger = winston.createLogger({
        level: 'verbose',
        transports: [
            // Use the default transport configuration for a local
            // install of the DD agent
            new DatadogTransport({ 
                format: datadogFormatter.format(),
            })
        ]
    });

    Install

    npm i winston-datadog-formatter

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    9.49 kB

    Total Files

    6

    Last publish

    Collaborators

    • themagoo