class NewRelic::Config

Defined in:

new_relic/config.cr
new_relic/config/environment.cr
new_relic/config/file.cr

Constant Summary

ENV_STRINGS = ["NEW_RELIC_ENV", "LUCKY_ENV", "ATHENA_ENV", "KEMAL_ENV", "APP_ENV"] of ::String
MalformedConfig = Exception

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(configuration_file : String | Nil = nil, app_name : String | Nil = nil, license_key : String | Nil = nil) #

[View source]

Class Method Detail

def self.environment #

[View source]
def self.environment_configuration(configuration_file : String | Nil = nil) #

This will return a configuration for the current environment, as specified by environment variable settings (see #environment). Specific elements of the current environment can be overridden or set through the use of environment variables.


[View source]
def self.find_config_file(filename : String) : String | Nil #

[View source]
def self.find_config_file #

[View source]

Instance Method Detail

def app_name #

[View source]
def config : Pointer(NewRelicExt::AppConfigT) #

[View source]
def destroy! #

[View source]
def license_key #

[View source]
def log_file #

[View source]
def log_file_name #

[View source]
def log_file_path #

[View source]
def log_level #

[View source]
def pointer #

[View source]
def structure : Pointer(NewRelicExt::AppConfigT) #

[View source]