playwright-python icon indicating copy to clipboard operation
playwright-python copied to clipboard

Using logger with playwright-python

Open amittendulkar opened this issue 4 years ago • 1 comments

I can currently get logger output on screen using DEBUG=pw:api environment variable.

However, it is possible to get the output to a file specified by the caller using the logging module?

For e.g., I am building a custom RobotFramework library and want the Playwright logging to get merged into RobotFramework HTML log output.

amittendulkar avatar Jan 19 '21 13:01 amittendulkar

@amittendulkar There is a feature request on the main repo, you can upvote that https://github.com/microsoft/playwright/issues/6465

kumaraditya303 avatar May 08 '21 05:05 kumaraditya303