Class: NewRelic::Control::Merb
Instance Attribute Summary
#local_env, #log_file
Instance Method Summary
collapse
#[], #[]=, #add_instrumentation, #agent_enabled?, #apdex_t, #api_server, #app, #app_names, #capture_params, #developer_mode?, #dispatcher, #dispatcher_instance_id, #fetch, format_message, #http_connection, #init_plugin, #install_instrumentation, #install_shim, instance, #license_key, #load_samplers, #log, #log!, #monitor_mode?, #multi_threaded?, #post_size_limit, #profiling=, #profiling?, #profiling_available?, #proxy_server, #server, #server_from_host, #settings, #start_agent, #sync_startup, #to_s, #use_ssl?, #use_textmate?, #validate_seed, #validate_token, #verify_certificate?
Instance Method Details
#env ⇒ Object
3
4
5
|
# File 'lib/new_relic/control/merb.rb', line 3
def env
@env ||= ::Merb.env
end
|
#init_config(options = {}) ⇒ Object
16
17
18
19
20
21
22
23
|
# File 'lib/new_relic/control/merb.rb', line 16
def init_config options={}
::Merb::Plugins.add_rakefiles File.join(newrelic_root,"lib/tasks/all.rb")
::Merb::Plugins.config[:newrelic] = {
:config => self
}
end
|
#root ⇒ Object
6
7
8
|
# File 'lib/new_relic/control/merb.rb', line 6
def root
::Merb.root
end
|
#to_stdout(msg) ⇒ Object
10
11
12
13
14
|
# File 'lib/new_relic/control/merb.rb', line 10
def to_stdout(msg)
Merb.logger.info("NewRelic ~ " + msg)
rescue Exception => e
STDOUT.puts "NewRelic ~ " + msg
end
|