lib/logsformyfamily.rb in logsformyfamily-0.2.3 vs lib/logsformyfamily.rb in logsformyfamily-0.3.0
- old
+ new
@@ -29,11 +29,11 @@
def self.configure
yield(configuration)
end
class Configuration
- attr_accessor :version, :hostname, :app_name, :backends, :request_id
+ attr_accessor :version, :hostname, :app_name, :backends, :request_id, :level
def initialize
@version =
begin
`git rev-parse --short HEAD`.chomp
@@ -42,9 +42,10 @@
end
@hostname = `hostname`.strip
@app_name = ENV['NEWRELIC_APP']
@backends = []
@request_id = proc { |env| env['core_app.request_id'] }
+ @level = :debug
end
def to_h
{
version: @version,