class NewRelic::Config
- NewRelic::Config
- Reference
- Object
Defined in:
new_relic/config.crnew_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
- .environment
-
.environment_configuration(configuration_file : String | Nil = nil)
This will return a configuration for the current environment, as specified by environment variable settings (see #environment).
- .find_config_file(filename : String) : String | Nil
- .find_config_file
Instance Method Summary
- #app_name
- #config : Pointer(NewRelicExt::AppConfigT)
- #destroy!
- #license_key
- #log_file
- #log_file_name
- #log_file_path
- #log_level
- #pointer
- #structure : Pointer(NewRelicExt::AppConfigT)
Constructor Detail
def self.new(configuration_file : String | Nil = nil, app_name : String | Nil = nil, license_key : String | Nil = nil)
#
Class Method Detail
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.