[Feature Request] Logging statements are not present in log output
Author: bastbuCreated Jan 31, 2024Updated Aug 28, 2025
Labelsfeaturepromptflow-core
Describe the bug
When emitting logging statements within a flow in prompt flow, they do not appear in the log output.
How To Reproduce the bug Steps to reproduce the behavior, how frequent can you experience the bug:
- In a Python node, emit a log using:
logger = logging.getLogger(__name__)logger.warn("log statement")
"log statement"should show up in the log output when running a flow
Expected behavior
"log statement" should show up in the log output when running a flow (and with that also in logs.txt).
Running Information(please complete the following information):
- Promptflow Package Version using
1.4.1 - Operating System: WSL on Windows 11
- Python Version using Python (Linux) 3.9.18
Source: microsoft/promptflow