Skip to main content

Log Level Settings

The log level is passed to initialize() and applies to the native SDK running underneath.

import {initialize} from '@anypoint/flower-sdk-react-native';

await initialize('Verbose');

Available Levels​

The LogLevel type accepts the following values:

Log LevelDescription
VerboseProduces all log entries.
DebugProduces all log entries with the Debug level and above.
InfoProduces all log entries with the Info level and above. Default.
WarnProduces all log entries with the Warn level and above.
ErrorProduces log entries only with the Error level.
OffDoes not produce any log entries.
export type LogLevel = 'Verbose' | 'Debug' | 'Info' | 'Warn' | 'Error' | 'Off';

The level applies from the logs generated immediately after initialize() resolves.

tip

Use 'Verbose' while integrating so that ad requests, manifest manipulation and player adapter selection are all visible, then lower it to 'Info' or 'Warn' for production builds.

Where the Logs Appear​

Native SDK logs are written by the platform's own logging facility, not by JavaScript, so they do not show up in the Metro console:

PlatformWhere to look
Androidadb logcat — native SDK logs are tagged by the SDK, JavaScript console.log lands under ReactNativeJS
iOSXcode console / Console.app