Method: Logtail::Config#environment=

Defined in:
lib/logtail/config.rb

#environment=(value) ⇒ Object

The environment your app is running in. Defaults to ‘RACK_ENV` and `RAILS_ENV`. It should be rare that you have to set this. If the aforementioned env vars are not set please do.

Examples:

If you do not set ‘RACK_ENV` or `RAILS_ENV`

Logtail::Config.instance.environment = "staging"


120
121
122
# File 'lib/logtail/config.rb', line 120

def environment=(value)
  @environment = value
end