[rb] output driver logs by default when debug is enabled by titusfortner · Pull Request #16901 · SeleniumHQ/selenium

@titusfortner

@titusfortner

@titusfortner

@titusfortner

- Add Logger#debug! and Logger#stderr! to force settings and prevent overrides
- When SE_DEBUG is set, force debug level and stderr output
- Warn when SE_DEBUG overrides user-specified driver logging args
- Warn when SE_DEBUG overrides user-specified driver log output

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

@titusfortner @claude

- Fix bug where --log without value would delete the next arg incorrectly
- Only enable driver verbose logging when SE_DEBUG is set (not DEBUG/$DEBUG)
- Add tests verifying SE_DEBUG adds verbose flags and removes conflicting args

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>