Azure / Azure/azure-functions-python-worker

How to see logs at global level?

Abierto
#1,728 2 comentarios 0 reacciones 0 asignados Ver en GitHub
area:python-functions Needs: Triage :mag: python
Lenguaje dominante
Python
Estrellas
357
Forks
116
Merge medio
32 min
PR fusionados (30 d)
1

Descripción

Suppose I have a following `global_settings.py` file.
```python
logging.info("Setting global variables")
blob_name = "stgblob"
mongo_url = ""
logging.info("Global variables initialized")
```
And I import these in the `function_app.py`
```python
from global_settings import blob_name, mongo_url

... function code
```

I am unable to see the logs while running locally on vscode. Can anyone help me tell how to see them? I have tried `func host start --verbose` and settings default logging level to information in `host.json` but it didn't work.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduce la ejecución local utilizando global_settings.py, function_app.py, host.json y el comando notificado func host start --verbose. Rastrea cuándo se inicializa el módulo importado y compáralo con la salida de registro local del worker; el issue se resuelve cuando los mensajes de inicio del módulo son visibles durante la ejecución local.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
azure, python
Área
backend, cloud
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.