logmate 0.0.3-beta copy "logmate: ^0.0.3-beta" to clipboard
logmate: ^0.0.3-beta copied to clipboard

LogMate is a Flutter package that helps developers track and monitor logs remotely from their apps. It's perfect for debugging, monitoring, or error reporting.

๐Ÿชต LogMate Flutter Package #

LogMate is a Flutter package that helps developers track and monitor logs remotely from their apps. Logs are stored securely on a Supabase backend and can be viewed from a web dashboard in real-time. It's perfect for debugging, monitoring, or error reporting.


โœจ What Does It Do? #

  • Allows you to send logs (like errors, warnings, debug info, etc.) from any Flutter app
  • Helps you monitor logs remotely on a centralized web dashboard
  • Offers filtering, severity levels, and secure app-level access
  • Works without requiring user login in your app

๐Ÿš€ How to Use LogMate #

โœ… Step 1: Register & Create App #

  • Visit the LogMate Web Dashboard
  • Register and log in as a user
  • Click "Create New App" to register your app
  • Copy the API_KEY provided for your app โ€“ this will be used in your Flutter app

๐Ÿ“ฆ Step 2: Install LogMate Package #

In your Flutter app, add the following to your pubspec.yaml:

dependencies:
  logmate: ^1.0.0

Then run:

flutter pub get

๐Ÿ›  Step 3: Initialize LogMate with API Key #

In your appโ€™s main() function or before you want to send any logs:

import 'package:logmate/logmate.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  
  await LogMate.initialize(appApiKey: 'YOUR_API_KEY_FROM_DASHBOARD');
  
  runApp(MyApp());
}

๐Ÿ“ Step 4: Send Logs from Anywhere in Your App. Using await is optional. It will return true if log was sent successfully, false otherwise. #

Call sendLog() wherever you want to log something:

await LogMate.sendLog(
  title: 'Login Failed',
  description: 'Exception: No user found with given email.',
  severity: LogSeverity.error, // Choose from: debug, info, warning, error, critical
);

๐Ÿงช Example Use Cases #

// For debug messages
await LogMate.sendLog(title: 'Debug Message', description: 'This is a debug log', severity: LogSeverity.debug);

// For warnings
await LogMate.sendLog(title: 'Slow Network', description: 'Network response > 5s', severity: LogSeverity.warning);

// For critical crashes
await LogMate.sendLog(title: 'Crash Report', description: 'App crashed on login screen', severity: LogSeverity.critical);

๐Ÿ” Security First #

  • Data is protected using Supabase's Row-Level Security (RLS)
  • Only app owners (users who created the app) can view and manage logs via the dashboard

๐Ÿ’ป Web Dashboard Features #

  • User registration & login
  • Create multiple apps per user
  • Get and manage unique API keys
  • View logs with filtering (severity/date)

๐Ÿ“„ License #

MIT License


Made with โค๏ธ using Flutter & Supabase

2
likes
0
points
23
downloads

Publisher

verified publisherbhoominn.com

Weekly Downloads

LogMate is a Flutter package that helps developers track and monitor logs remotely from their apps. It's perfect for debugging, monitoring, or error reporting.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, supabase_flutter

More

Packages that depend on logmate