Skip to content

Enable level config for console logger#1324

Merged
waltjones merged 2 commits into
masterfrom
waltjones/browser-logger-level
Sep 23, 2025
Merged

Enable level config for console logger#1324
waltjones merged 2 commits into
masterfrom
waltjones/browser-logger-level

Conversation

@waltjones

@waltjones waltjones commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

Description of the change

Console logger accepts a config option for logLevel.

  • Enable level config for the browser console logger. 923f421
  • Move logger to shared dir (browser, server, react-native). 84c8a2c

Notes:

  • Init is handled before config options processing, because handleOptions uses the logger.
  • Config can set logLevel: 'disable' to mute all logging.

Examples

config = {
  logLevel: 'debug', // everything please
}
config = {
  logLevel: 'warn', // warnings and errors
}
config = {
  logLevel: 'disable', // silence
}

Type of change

  • Maintenance

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

@waltjones waltjones merged commit 171f73b into master Sep 23, 2025
4 checks passed
@waltjones waltjones deleted the waltjones/browser-logger-level branch September 23, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants