lib/app_monit/config.rb in app_monit-0.0.8 vs lib/app_monit/config.rb in app_monit-0.0.9

- old
+ new

@@ -1,9 +1,9 @@ module AppMonit class Config class << self - attr_writer :api_key, :env, :end_point, :fail_silent, :enabled, :timeout, :version + attr_writer :api_key, :env, :end_point, :fail_silent, :enabled, :timeout, :version, :async, :log_level, :flush_rate def api_key @api_key || raise(ApiKeyNotSetError.new("Please set your API key")) end @@ -23,9 +23,21 @@ @fail_silent || false end def enabled? @enabled.nil? ? env != "test" : @enabled + end + + def log_level + @log_level || Logger::DEBUG + end + + def async? + @async + end + + def flush_rate + @flush_rate || 60 end def timeout @timeout || 1 end