GithubHelp home page GithubHelp logo

art1sec8 / loggly Goto Github PK

View Code? Open in Web Editor NEW

This project forked from miktam/loggly

0.0 2.0 0.0 133 KB

Meteor client implementation for Loggly cloud Logging-as-a-Service API.

License: MIT License

JavaScript 100.00%

loggly's Introduction

Loggly for Meteor

A Meteor logger for Loggly on the server/client side.

Client side support implemented by Michael Ghobrial

Module wraps loggly npm module and adds a few useful helpers, like log.error/log.trace/log.info/log.warn.

Loggly.{warn, error, info, trace} will produce error message with appropriate tag (warn, error, info or trace).

Installation

meteor add miktam:loggly

Usage (client/server side)

      //Create the Logger object on the server side only
      //for example, you can put the following in Meteor.startup on the server

      Logger = new Loggly({
        token: "your-really-long-input-token",
        subdomain: "your-subdomain",
        auth: {
          username: "your-username",
          password: "your-password"
        },
        //
        // Optional: Tag to send with EVERY log message
        //
        tags: ["global-tag"],
        // Optional: logs will be stored in JSON format
        json: "true"
      });

      //The following can be called on either the Meteor client or server

      Logger.log("first log from meteor");
      Logger.info("it will store this message with info tag");
      Logger.info("all", "arguments", "will be stored");
      Logger.info("my fancy object", {fancy: true});

      Logger.log("log and wait of the response in a callback", function(err, result) {
        console.log(err); // normally - null
        console.log(result); // normally - { response: 'ok' }
      })

Licence

The MIT License (MIT)

Copyright (c) 2015, Andrei Karpushonak aka @miktam, http://avrora.io

loggly's People

Contributors

art1sec8 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.