mobile/packages/log_viewer/README.md
A Flutter package that provides an in-app log viewer with advanced filtering capabilities for Ente apps.
import 'package:log_viewer/log_viewer.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
// Initialize log viewer (basic)
await LogViewer.initialize();
// Or with a prefix for multi-process apps
await LogViewer.initialize(prefix: '[MAIN]');
runApp(MyApp());
}
// As a navigation action
LogViewer.openViewer(context);
// Or embed as a widget
LogViewer.getViewerPage()
The log viewer automatically registers with Logger.root.onRecord to capture all logs from the logging package. No additional setup is required.