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

Ambiguous reference to member 'log' #261

Closed
olivierto opened this issue Apr 10, 2018 · 2 comments
Closed

Ambiguous reference to member 'log' #261

olivierto opened this issue Apr 10, 2018 · 2 comments

Comments

@olivierto
Copy link

Hello there!

I'm facing a weird issue with Swift 4, XCode 9.3 and NSLogger (setup by pods : NSLogger and NSLogger/Swift)

Here is the code :
self.viewModel.authenticate().subscribe { (task:AWSTask<AWSCognitoIdentityUserSession>) in Logger.shared.log(.app,.noise,task) //error pops here }

In fact it seems to happens every time i try to log an object.
Logger.shared.log(.app,.noise,self.myProperty)

Any help will be much appreciated.

@fpillet
Copy link
Owner

fpillet commented Apr 10, 2018

You need to pass a string to the log function, I guess that's your problem here.

@olivierto
Copy link
Author

Oh thanks! that's it !
What was a bit confusing was the example in the readme :
// logging data Logger.shared.log(.custom("My Domain"), .noise, someDataObject)

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

No branches or pull requests

2 participants