rollbar / rollbar-ios

Objective-C library for crash reporting and logging with Rollbar.
https://docs.rollbar.com/docs/ios
MIT License
65 stars 61 forks source link

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

Closed tomokisun closed 3 years ago

tomokisun commented 4 years ago

Hi, thanks for the rollbar!

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

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

akornich commented 4 years ago

@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

akornich commented 4 years ago

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

tomokisun commented 4 years ago

@akornich

Thank you! I will continue to use Rollbar.

akornich commented 4 years ago

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

akornich commented 3 years ago

looks like we can close due to long inactivity