microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
65.37k stars 3.55k forks source link

[Feature] Logging support on the language bindings #6465

Open kumaraditya303 opened 3 years ago

kumaraditya303 commented 3 years ago

Currently, playwright when in debug mode logs output to stdout directly, while this is great, it is impossible to customise logging from the logger of the language being used like, if user is using python logging module then playwright cannot log with logging module, for java users would like to use sl4j for logging etc.

If playwright passes log output with rpc then each language can customise it by itself.

Consider upvoting :+1: if you want to use logging from your playwright supported language.

amittendulkar commented 3 years ago

👍 from me

murtaza1415 commented 2 years ago

+1 Would be really helpful to have this feature, so that I may redirect the logs from stdout to a file.

Mattwmaster58 commented 1 year ago

Nearly 40 :+1:, hope this feature gets a second look

philippeg-ligo commented 9 months ago

+1

wencan commented 8 months ago

+1

rcastellotti commented 1 month ago

+1

sgupta38 commented 1 week ago

+1