firebase / firebase/functions-samples
[DOCS] for sample: monitor-cloud-logging : logging submodule
- Dominant language
- JavaScript
- Stars
- 12.2k
- Forks
- 3.8k
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 1
Description
### Which sample?
https://github.com/firebase/functions-samples/blob/703c0359eacf07a551751d1319d34f912a2cd828/Python/quickstarts/monitor-cloud-logging/functions/main.py#L8-L8
### 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:
```python
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)`
Contributor guide
Assessment
This issue has not been assessed yet.