moewe 0.1.8 copy "moewe: ^0.1.8" to clipboard
moewe: ^0.1.8 copied to clipboard

a client library for mœwe

mœwe | dart client #

this is a development preview of the dart moewe client.

moewe is a open source, privacy preserving crash logging service that can be self-hosted

usage #

initialize the client within your Flutter applications main.dart

void main() async {

  // setup Moewe for crash logging
  await Moewe(
    host: "moewe.example.org",
    project: "yourProjectId",
    app: "yourAppId"
  ).init();

  runApp(const MyApp());
}

you can now use the moewe client within your app:

moewe.events.appOpen();
moewe.log.debug("this is a debug message");
moewe.crash("an error occurred", null);

crash logging #

you can manually log crashes using the moewe.crash(...) function. To catch crashes within the entire app, try wrapping your runApp(...) statement with crashLogged:

void main() async {

  ...

  moewe.crashLogged(
    () async => runApp(const MyApp())
  );
}