Skip to content

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

Open
@bastbu

Description

@bastbu

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions