Code Monkey home page Code Monkey logo

meteor-custom-audit's Introduction

meteor-custom-audit

https://atmospherejs.com/laboratory/meteor-custom-audit

Audit custom events such as:

  var customOptions = {
    sendEmail: true
  }
  Audit.Error('Incorrect password');
  Audit.Fatal('Exception Meteor.Error');
  Audit.Warn('Session timeout');
  Audit.Info('Create chart', customOptions);

Result saved into database

{
  "type": "Info",
  "message": "Create chart",
  "owner": false,
  "created_at": "ThuDec11201420: 28: 44GMT+0300(MSK)",
  "_id": "gxftndeejfC2rHv4f",
  "sendEmail": true
}

meteor-custom-audit's People

Contributors

laboratory avatar veeamgmbh avatar

Watchers

 avatar  avatar

meteor-custom-audit's Issues

Binding to Internal Collection

Hi, it would be really nice if the internal collection was exposed. Currently, I am binding to it by doing:

<code>return Audit._collection.find({}, {sort: {created_at: -1}});</code>

but might feel more natural if there was a way to do it like:

<code>return AuditLogs.find({}, {sort: {created_at: -1}});</code>

This is working fine and updates when a new item is added or removed from the collection. However, when a document is modified, the collection is not updated -- not sure if this is on purpose so audit records cannot be modified -- I'll be looking into the source shortly. In my case, modifying makes sense since I am using it to track user activity where some actions can be undone (flagged as undone instead of deleting them).

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.