Skip to content

feat: add the ability to write log to file#41

Merged
mato533 merged 4 commits intomainfrom
feat/logfile
Jun 2, 2025
Merged

feat: add the ability to write log to file#41
mato533 merged 4 commits intomainfrom
feat/logfile

Conversation

@mato533
Copy link
Copy Markdown
Member

@mato533 mato533 commented Jun 2, 2025

Proposed changes

Add the ability to output logs to a file, mainly for the purpose of analyzing logs output to OutputChannel when the screen cannot be referenced, such as E2E testing in CI.

If a directory path is set in the environment variable VSCODE_WDIO_TRACE_LOG_PATH, a file vscode-webdriverio.log will be output to that directory, and all log messages will be output to that file.

This will contain all output regardless of the log level setting.

Types of changes

  • Polish (an improvement for an existing feature)
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (improvements to the project's docs)
  • Internal updates (everything related to internal scripts, governance documentation and CI files)

Checklist

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation (if appropriate)
  • I have added proper type definitions for new commands (if appropriate)

Further comments

Reviewers: @webdriverio/project-committers

@github-actions github-actions Bot added the PR: New Feature 🚀 PRs that contain new features label Jun 2, 2025
@mato533 mato533 merged commit 87ba6ac into main Jun 2, 2025
18 checks passed
@mato533 mato533 deleted the feat/logfile branch June 2, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: New Feature 🚀 PRs that contain new features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant