skip to Main Content

So I’ll keep this short. I imported all the packages just fine and the app was working just fine until I started with the Firebase Auth stuff. I’m getting the following error: "Cannot find ‘logger’ in scope". I have all the packages imported as shown in the image. Would appreciate any recommendation. Thanks! enter image description here

2

Answers


  1. import OSLog
    

    That’s it. You just needed to know the right framework.

    Then you need to create an instance.

    let logger = Logger()
    
    Login or Signup to reply.
  2. I had to do import OSLog at the top of the file and then write the actual log statement like this: Logger.info(tag: "myTag", message: "myMessage")

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search