Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 54 additions & 1 deletion docs/docs/guides/LOGGING.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,54 @@
TODO
---
id: logging
title: Logging
sidebar_label: Logging
slug: /guides/logging
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

## Native logs

`react-native-filament` native logs are enabled by default. They are compiled
into the native target, so disabling them also removes noisy
`HybridObject` lifecycle messages such as `EntityWrapper` creation and
deletion during morph-target updates.

To disable these logs, set the platform-specific build setting below, then
reinstall or clean the native build and rebuild the app:

<Tabs
groupId="nativeLogging"
defaultValue="ios"
values={[
{label: 'iOS', value: 'ios'},
{label: 'Android', value: 'android'}
]}>
<TabItem value="ios">

Add this near the top of `ios/Podfile`:

```ruby
$RNFEnableLogs = false
```

Then run `pod install` and rebuild the app.

</TabItem>
<TabItem value="android">

Add this to `android/gradle.properties`:

```properties
RNF_enableLogs=false
```

Then clean and rebuild the app so the native CMake configuration is
regenerated.

</TabItem>
</Tabs>

This setting controls `react-native-filament` native logs only. It is a
build-time setting, not a runtime toggle.