Sha256: 456331053fa4eba485795556f3ed139fd9b37eeff032993c1ca558bade4aaa69
Contents?: true
Size: 815 Bytes
Versions: 3
Compression:
Stored size: 815 Bytes
Contents
#!/usr/bin/env ruby # coding: utf-8 # # Logentries Ruby monitoring agent # Copyright 2010,2011 Logentries, Jlizard # Mark Lacomber <marklacomber@gmail.com> # require File.join(File.dirname(__FILE__), 'le', 'host') require 'logger' module Le def self.new(key, location, local=false) self.checkParams(key, location) host = Le::Host.new(key, location, local) logger = Logger.new(host) logger.formatter = host.formatter logger end def self.checkParams(key, location) if key == nil or location == nil puts "\nLE: Incorrect parameters for Logentries Plugin!\n" end # Check if the key is valid UUID format if (key =~ /\A(urn:uuid:)?[\da-f]{8}-([\da-f]{4}-){3}[\da-f]{12}\z/i) == nil puts "\nLE: It appears the LOGENTRIES_ACCOUNT_KEY you entered is invalid!\n" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
le-1.9.2 | ./lib/le.rb |
le-1.9.1 | ./lib/le.rb |
le-1.8.1 | ./lib/le.rb |