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

Improve clarity around logs behaviour in k6 #877

Open
yorugac opened this issue Nov 9, 2022 · 2 comments
Open

Improve clarity around logs behaviour in k6 #877

yorugac opened this issue Nov 9, 2022 · 2 comments
Assignees
Labels
Area: OSS Content Improvements or additions to community/oss documentation Type: needsMaintainerHelp Good issue for k6 maintainers

Comments

@yorugac
Copy link
Contributor

yorugac commented Nov 9, 2022

k6 has a bit unusual approach to the logs it prints in CLI output by default. Logs of all levels are written to stderr, unless --log-output option is used. With that option, logs of all levels are re-directed to the specified location. There is no difference in the logs behaviour by levels (INFO vs ERROR vs WARNING).

From the user's perspective, it appears as if this approach was taken to distinguish between test run process messages and summary in stdout and logs in stderr. This is a bit unusual from the perspective of CLI tooling, and it'd be useful for some use cases to be explicit about these details in the docs.

@MattDodsonEnglish MattDodsonEnglish added Area: OSS Content Improvements or additions to community/oss documentation Type: needsMaintainerHelp Good issue for k6 maintainers labels Nov 9, 2022
@MattDodsonEnglish
Copy link
Contributor

👍 It'd be good to get more logs about docs. Now the only info is in the reference for a few scattered options.

Now that we have a new sidebar section called "Results output", I think it'd be pretty sensible to put a new page or collection of pages called Logs there.

@ppcano
Copy link
Collaborator

ppcano commented Apr 4, 2023

Relates to #327

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: OSS Content Improvements or additions to community/oss documentation Type: needsMaintainerHelp Good issue for k6 maintainers
Projects
None yet
Development

No branches or pull requests

4 participants