Skip to content

Mark logger/react_native_log.h as a for-frameworks C++ API - #59105

Closed
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D125412015
Closed

j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D125412015

Conversation

@j-piasecki

Copy link
Copy Markdown
Contributor

Summary:
react_native_log.h is how host integrations install a sink for React Native's native logs (set_react_native_logfunc, ReactNativeLogLevel). It is not reached from any public header, so classify it in the "for frameworks" tier of the C++ stable API by including FrameworksGuard.h. Consumers opting into RN_STRICT_API get a suppressible warning (silenced with RN_ALLOW_FRAMEWORKS) instead of no classification.

The logger target now depends on cxxstableapi in BUCK, CMake and CocoaPods.

Changelog: [Internal]

Differential Revision: D125412015

Summary:
`react_native_log.h` is how host integrations install a sink for React Native's native logs (`set_react_native_logfunc`, `ReactNativeLogLevel`). It is not reached from any public header, so classify it in the "for frameworks" tier of the C++ stable API by including `FrameworksGuard.h`. Consumers opting into `RN_STRICT_API` get a suppressible warning (silenced with `RN_ALLOW_FRAMEWORKS`) instead of no classification.

The `logger` target now depends on `cxxstableapi` in BUCK, CMake and CocoaPods.

Changelog: [Internal]

Differential Revision: D125412015
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 15, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner labels Oct 15, 2026
@meta-codesync

meta-codesync Bot commented Oct 15, 2026

Copy link
Copy Markdown

@j-piasecki has exported this pull request. If you are a Meta employee, you can view the originating Diff in D125412015.

@facebook-github-tools facebook-github-tools Bot added the p: Facebook Partner: Facebook label Oct 15, 2026
@meta-codesync meta-codesync Bot closed this in 72885c1 Oct 15, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Oct 15, 2026
@meta-codesync

meta-codesync Bot commented Oct 15, 2026

Copy link
Copy Markdown

This pull request has been merged in 72885c1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant