Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger not available in Objective-C project #185

Closed
joaomvfsantos opened this issue Sep 25, 2017 · 7 comments
Closed

Logger not available in Objective-C project #185

joaomvfsantos opened this issue Sep 25, 2017 · 7 comments
Labels

Comments

@joaomvfsantos
Copy link

I'm using this SDK on an objective c project, however i cannot access the logger property of the PiwikTracker class, or any Logger class for that matter.

#import "PiwikTracker-Swift.h"
// (...)
[PiwikTracker configureSharedInstanceWithSiteID:siteId baseURL:piwikUrl];
[PiwikTracker shared].logger = (...) // compile error: Property 'logger' not found on object of type 'PiwikTracker *'    
[PiwikTracker shared].dispatchInterval = 10;

Am I missing something here? Thanks in advance.

@brototyp
Copy link
Member

Hi @joaomvfsantos, this can very well be true. I will have a look into it.

@brototyp brototyp added the bug label Sep 28, 2017
@brototyp
Copy link
Member

brototyp commented Oct 1, 2017

Hi @joaomvfsantos, I just checked this out. Please try out this branch feature/185-logger-in-objc and use something like [PiwikTracker shared].logger = [[DefaultLogger alloc] initWithMinLevel:LogLevelVerbose]; to define your log level.

Please get back to me if you tried it.

@joaomvfsantos
Copy link
Author

Hello @brototyp I'll try to have a look at this in the next few days. I'll keep in touch.

@joaomvfsantos
Copy link
Author

@brototyp This seems to be working. Thanks

@brototyp
Copy link
Member

brototyp commented Oct 6, 2017

@joaomvfsantos Great. I will merge it soon. It will be part of the next release.

@brototyp
Copy link
Member

This just got merged and will be part of the next release

@brototyp
Copy link
Member

Just released version 4.4.0 containing this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants