Sha256: cebe41a1f079e19962bb46643bfd34b0cafbe2dfdbc23b1dff2b328ceee5524a
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
require 'http' require 'active_support/logger' require 'logdna' module LogDNA class RailsLogger < ActiveSupport::Logger include LogDNA attr_reader :open attr_accessor :api_key, :host, :default_app, :ip, :mac def initialize(api_key, hostname, options = {}) @conn = HTTP.persistent LogDNA::INGESTER_DOMAIN opts = fill_opts_with_defaults(options) super(opts[:logdev], opts[:shift_age], opts[:shift_size]) set_ivars(api_key, hostname, options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logdna-rails-0.0.5 | lib/logdna/rails.rb |