logich-loggly

    0.0.4 • Public • Published

    This is loggly.com middleware plugin for logich logger.

    Install: npm install logich npm install logich-loggly

    Usage:

    var logich = require("logich");
    var loggly = require("logich-loggly");
    

    Your loggly.com settings as you would provide to loggly package.

    var config = {
        token: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        subdomain: "XXXXXXXXX",
        tags: ["NodeJS"],
        json: true
    };
    

    Start logging:

    var logger = logich()
        .use(logich.object)
        .use(logich.time)
        .use(logich.console)
        .use(loggly(config));
        
    // Send log message to STDIN and loggly.com:
    logger.log("Hello world!");

    Install

    npm i logich-loggly

    DownloadsWeekly Downloads

    2

    Version

    0.0.4

    License

    none

    Last publish

    Collaborators

    • streamich