Method: NewRelic::Agent::Configuration::EnvironmentSource#set_log_file
- Defined in:
- lib/new_relic/agent/configuration/environment_source.rb
#set_log_file ⇒ Object
52 53 54 55 56 57 58 59 60 61 |
# File 'lib/new_relic/agent/configuration/environment_source.rb', line 52 def set_log_file if ENV['NEW_RELIC_LOG'] if ENV['NEW_RELIC_LOG'].casecmp(NewRelic::STANDARD_OUT) == 0 self[:log_file_path] = self[:log_file_name] = NewRelic::STANDARD_OUT else self[:log_file_path] = File.dirname(ENV['NEW_RELIC_LOG']) self[:log_file_name] = File.basename(ENV['NEW_RELIC_LOG']) end end end |