Installation for React Native

npm i react-native-birch

Initalize the logger

import Birch from 'react-native-birch';
import { useEffect } from 'react';

export default function App() {
  useEffect(() => {
    Birch.init({
      apiKey: "your_api_key",
      publicKey: "public_encryption_key",
    });
  }, []);
}

Logging

Use the logger as you would with any logger.

Birch.t("trace message");
Birch.d("debug message");
Birch.i("info message");
Birch.w("warn message");
Birch.e("error message");