Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-deployment-logger

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-deployment-logger

log deployment events to logstash

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

grunt-deployment-logger

Build Status NPM version Dependencies

Provides tasks to log deployment markers to redis. See kibana docs for more info.

['start-deployment', 'end-deployment']

Currently only supports logging to redis. The type option is provided so that you can strongly-type the log messages.

grunt.initConfig({
  'start-deployment': {
    'myproject': {
      options: {
        host: '127.0.0.1',
        port: 6379,
        list: 'logstash',
        type: 'myproject-deployment-message',
        message: 'starting deployment of version 1.2.3',
        env: 'test'
      }
    }
  },
  'end-deployment': {
      'myproject': {
        options: {
          host: '127.0.0.1',
          port: 6379,
          list: 'logstash',
          type: 'myproject-deployment-message',
          message: 'finished deployment of version 1.2.3',
          env: 'prod'
          timestamp: new Date().toISOString() // default timestamp is unix milliseconds, you can override it if you want ISO or something else
        }
      }
    }
});

Sample message output (based on above configuration)

{
  "type": "myproject-deployment-message",
  "action": "start-deploy",
  "message":"starting deployment of version 1.2.3",
  "timestamp": 1399997783542,
  "host": "my.machine.name.local"
},

{
  "type": "myproject-deployment-message",
  "action": "end-deploy",
  "message":"finished deployment of version 1.2.3",
  "timestamp": "2014-08-01T12:31:23.345Z",
  "host": "my.machine.name.local"
}

Keywords

FAQs

Package last updated on 04 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc