Skip to content

[DOCS] for sample: monitor-cloud-logging : logging submodule #1153

Open
@mouadessalim

Description

@mouadessalim

Which sample?

What is the issue with this sample's docs?

Description:

I encountered an issue while trying to use the logger submodule from the firebase_functions module. According to the documentation and examples, it seems like there should be a logger submodule available, but it doesn't exist in the installed package.

Steps to Reproduce:

  1. Install firebase_functions using pip.

  2. Attempt to import the logger submodule as shown below:

    from firebase_functions import logger
  3. Run the script.

Expected Behavior:
The logger submodule should be imported without any errors.

Actual Behavior:
The following error is raised: ImportError: cannot import name 'logger' from 'firebase_functions' (/path/to/venv/lib/python3.12/site-packages/firebase_functions/init.py)

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