simple_logger_overlay 0.2.2 copy "simple_logger_overlay: ^0.2.2" to clipboard
simple_logger_overlay: ^0.2.2 copied to clipboard

A simple, Dart 3+ compatible Flutter logging plugin with an in-app draggable overlay, log levels, and Dio support

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:simple_logger_overlay/simple_logger_overlay.dart';

import 'app/simple_overlay_logger_app.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  WidgetsBinding.instance.addObserver(SimpleOverlayAppLifecycleObserver());
  await _seedLogs();
  runApp(const SimpleOverlayLoggerApp());
}

Future<void> _seedLogs() async {
  await SimpleLoggerOverlay.log(
    'App launched',
    tag: 'main',
    level: LogLevel.info,
  );
  await SimpleLoggerOverlay.log(
    'WidgetsBinding initialized',
    tag: 'main',
    level: LogLevel.debug,
  );
  await SimpleLoggerOverlay.log(
    'AppLifecycleObserver registered',
    tag: 'main',
    level: LogLevel.debug,
  );
}
3
likes
160
points
152
downloads

Documentation

API reference

Publisher

verified publishersammacwan.in

Weekly Downloads

A simple, Dart 3+ compatible Flutter logging plugin with an in-app draggable overlay, log levels, and Dio support

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

animations, dio, flutter, flutter_bloc, flutter_html, flutter_riverpod, get, go_router, google_fonts, intl, path_provider, shake, share_plus

More

Packages that depend on simple_logger_overlay