rollbar / rollbar-ios

Objective-C library for crash reporting and logging with Rollbar.

Home Page:https://docs.rollbar.com/docs/ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question]Is there a `rollbarConfig.environemnt`?

tomokisun opened this issue · comments

Hi, thanks for the rollbar!

let configuration = RollbarConfiguration()
configuration.environment = "Production"

How do I set up configuration.environment = "Production" with the V2 `RollbarConfig?

@tomoki69386, that would be rollbarConfig.destination.environment = "Production"
In v2, RollbarConfig groups settings into logically related "sub-configs": https://github.com/rollbar/rollbar-ios/blob/vNext-2.0.0/RollbarNotifier/Sources/RollbarNotifier/include/RollbarConfig.h

@tomoki69386, v2.0.0-alpha12 was just published. It has some improved Swift interface.
Feedback is very welcome!

@akornich

Thank you!
I will continue to use Rollbar.

@tomoki69386, sounds good! Happy Rollbarring! And let us know if you would like to see some changes/improvements to the SDK.

looks like we can close due to long inactivity