Skip to content

Unable to import logger  #161

Closed
Closed
@fjahr

Description

@fjahr

I am trying to use the logger, just like in the example given here: https://firebase.google.com/docs/functions/writing-and-viewing-logs?gen=2nd

But when I try to deploy the function I get the following error message:

    from firebase_functions import logger
ImportError: cannot import name 'logger' from 'firebase_functions'

I am using the latest version (0.1.2) but indeed when I go into the venv folder where it is installed I don't see the logger file included. Any idea what is going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions