[React Native] Canonicalize LogLevel to debug/warn/error/none#444
Draft
markmur wants to merge 2 commits into
Draft
[React Native] Canonicalize LogLevel to debug/warn/error/none#444markmur wants to merge 2 commits into
markmur wants to merge 2 commits into
Conversation
This was referenced Jul 13, 2026
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
markmur
force-pushed
the
rn-canonical-log-levels
branch
from
July 14, 2026 08:00
a879efd to
bfc0b17
Compare
markmur
force-pushed
the
web-log-level-attribute
branch
from
July 14, 2026 08:00
d1c8fdb to
acbc2a3
Compare
markmur
force-pushed
the
rn-canonical-log-levels
branch
from
July 14, 2026 08:22
bfc0b17 to
c84de31
Compare
markmur
force-pushed
the
web-log-level-attribute
branch
from
July 14, 2026 08:22
acbc2a3 to
e2a9f02
Compare
markmur
force-pushed
the
rn-canonical-log-levels
branch
from
July 14, 2026 08:48
c84de31 to
d37c2b3
Compare
markmur
force-pushed
the
web-log-level-attribute
branch
from
July 14, 2026 08:48
e2a9f02 to
dd25de8
Compare
markmur
force-pushed
the
rn-canonical-log-levels
branch
from
July 14, 2026 08:59
d37c2b3 to
a6d44e2
Compare
markmur
force-pushed
the
web-log-level-attribute
branch
from
July 14, 2026 08:59
dd25de8 to
80b109a
Compare
markmur
force-pushed
the
rn-canonical-log-levels
branch
from
July 14, 2026 10:03
a6d44e2 to
f371fef
Compare
markmur
force-pushed
the
web-log-level-attribute
branch
2 times, most recently
from
July 14, 2026 10:30
3100346 to
241b93c
Compare
markmur
force-pushed
the
rn-canonical-log-levels
branch
from
July 14, 2026 10:30
f371fef to
5ec1d55
Compare
markmur
force-pushed
the
web-log-level-attribute
branch
2 times, most recently
from
July 14, 2026 11:44
df991a6 to
95ddc32
Compare
markmur
force-pushed
the
rn-canonical-log-levels
branch
from
July 14, 2026 11:44
5ec1d55 to
355f5a2
Compare
Replace the boolean `debug` attribute/property with a `log-level` attribute and `logLevel` property carrying an ordered LogLevel enum (debug, warn, error, none). Levels form a threshold: debug is the most verbose and none silences everything; selecting a level emits that level and every more-severe level. Defaults to warn. Console output is routed through a small Logger utility gated by the current level, replacing the ad-hoc debug-gated warnings.
Expand the JS LogLevel enum to the full ordered set (debug, warn, error, none) and forward all four values across the iOS and Android bridges. Drop the iOS .all reference (removed from the Swift SDK) and make both bridge log-level mappings exhaustive. Default log level is now warn (was error), aligning React Native with Swift, Android, and Web.
markmur
force-pushed
the
rn-canonical-log-levels
branch
from
July 14, 2026 15:54
355f5a2 to
c842266
Compare
markmur
force-pushed
the
web-log-level-attribute
branch
from
July 14, 2026 15:54
95ddc32 to
4d6ae40
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What
Brings React Native in line with the other platforms' canonical, ordered
LogLevelset:debug, warn, error, none.LogLevelenum from{debug, error}to the full four-value set..allreference (removed from the Swift SDK) and makes both bridge log-level mappings exhaustive.warn(waserror), aligning RN with Swift, Android, and Web. Unrecognised values from the native bridge coerce towarn.Threshold
LogLeveldebugwarn(default)errornoneUsage
Validating locally
This PR depends on the unreleased native SDK changes in the stack (Swift #441, Android #442). The React Native
--local/ Maven Local workflow must publish those native SDKs first before the iOS/Android bridges resolve: