Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect logs to file doesnt capture time #945

Open
puagarwa opened this issue Oct 7, 2023 · 2 comments
Open

Redirect logs to file doesnt capture time #945

puagarwa opened this issue Oct 7, 2023 · 2 comments

Comments

@puagarwa
Copy link

puagarwa commented Oct 7, 2023

https://github.com/microsoft/playwright uses debug module for logging. While using playwright i observed that when using DEBUG_FILE env variable to redirect these logs to file, it doesnt show time whereas when we output it to console, it shows time.

Expected

pw:api => selectors.setTestIdAttribute started +0ms
pw:api => browserType.launch started +7ms

Actual

pw:api => selectors.setTestIdAttribute started
pw:api => browserType.launch started

down stream issue microsoft/playwright#27477

@paulconnexone
Copy link

I noticed the same thing. You can set the env DEBUG_COLORS=yes and get the ms, but if you are redirecting to a text file, it will still include the colour formatting characters.

@puagarwa
Copy link
Author

I noticed the same thing. You can set the env DEBUG_COLORS=yes and get the ms, but if you are redirecting to a text file, it will still include the colour formatting characters.

I tried it but i still didnt get time in log file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants