microsoft / microsoft/promptflow

[Feature Request] Logging statements are not present in log output

Open
#1,899 10 comments 4 reactions 2 assignees View on GitHub

Nobody has claimed this yet.

feature promptflow-core
Dominant language
Python
Stars
11.2k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

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:

  1. In a Python node, emit a log using:
    • logger = logging.getLogger(__name__)
    • logger.warn("log statement")
  2. "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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.