Search packages, repositories and app categories

Package detailsv0.0.1

cross_logger

Cross Platform Logger

AndroidiOSWebmacOSWindowsLinux
30-day downloads
56
Likes
0
Pub points
110

Install package

flutter pub add cross_logger

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Cross_logger is a cross-platform logging package for Flutter that provides a unified interface for logging across Android, iOS, Web, macOS, Windows, and Linux. It supports structured logging with customizable levels (e.g., debug, info, warning, error) and integrates seamlessly with various output targets such as console, files, or external services. Designed for debugging and monitoring, it helps developers track application behavior consistently across platforms. The package is lightweight, easy to configure, and ideal for both development and production environments.

Use cases

  • Debugging multi-platform apps
  • Monitoring app behavior in real-time
  • Capturing logs for issue analysis
  • Integrating with CI/CD pipelines
  • Centralized log management across devices

Key features

  • Supports all major Flutter platforms
  • Configurable log levels
  • Structured logging format
  • Extensible output handlers
  • Simple API with minimal setup

Suitable for

  • Developers building cross-platform Flutter apps
  • Teams requiring consistent logging practices
  • Applications needing detailed runtime diagnostics
  • Projects with strict debugging requirements
  • Production apps with observability needs

Considerations

  • May require additional configuration for advanced routing
  • Performance impact in high-frequency logging scenarios
  • File-based logging may need disk space management
  • Not designed for real-time remote log streaming without integration
  • Limited built-in filtering compared to enterprise solutions

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

📝 Encrypted Logging Package (Flutter / Dart)

A lightweight, modular logging system for Flutter and Dart applications that supports:

  • ✅ Local storage via IndexedDB (using idb_shim)
  • 🔒 Encryption using AES (via encrypt)
  • 🌐 WebSocket real-time logging
  • ☁️ HTTP blob upload support
  • 📦 Built for web-first apps with expandability for mobile support

📦 Installation

Add the following dependencies to your pubspec.yaml:

🧱 Architecture Overview

  • This package is structured with clean architecture principles:
  • EncryptionService: Handles AES encryption/decryption.
  • LogEntry: Data model with encrypted log message.
  • Log: Domain entity.
  • LocalDatabase: IndexedDB wrapper for storing logs.
  • HTTPHandler: Uploads logs as files to a remote server.
  • WebSocketClient: Sends logs over WebSocket.
  • LogUseCase: Orchestrates log flow (store, encrypt, send).
  • LoggerFacade: One-stop interface to log messages.

🚀 Usage

  1. Initialize the logger final logger = await LoggerFacade.initialize( 'ws://your-websocket-url', true, // encryption enabled );
  2. await logger.log("Hello, this is a test log!");

✅ Features

Feature | Status Local logging | ✅ Done AES Encryption | ✅ Done WebSocket send | ✅ Done HTTP blob upload | ✅ Done Test coverage | ✅ Done

✨ Contributions

PRs welcome! Feel free to fork, improve, or extend the system with new logging channels (e.g. Firebase, Sentry, etc.)

Categories

Dependencies

Dependency list 8 items

Source repository

Projects using this package

No data available yet.