Aus öffentlichen Paketdaten erstellte Orientierung.
surf_logger ist ein produktionsbereites Logging-Paket für Dart und Flutter, das strukturiertes, zuverlässiges und konfigurierbares Logging über mehrere Plattformen hinweg bereitstellt. Es unterstützt erweiterte Log-Formatierung, Filterung und Integration mit externen Diensten, was es ideal für Debugging und Monitoring in echten Anwendungen macht. Das Paket wird von surf.ru gepflegt und bietet eine nahtlose Einrichtung über pub.dev. Mit Unterstützung für Android, iOS, Web, macOS, Windows und Linux stellt es eine konsistente Logging-Verhaltensweise unabhängig vom Bereitstellungsumfeld sicher.
Anwendungsfälle
Echtzeit-App-Debugging
Fehlerverfolgung in der Produktion
Leistungsüberwachung
Integration mit Analyseplattformen
Zentralisierte Protokollverwaltung
Plattformübergreifende Konsistenz
Hauptmerkmale
Strukturierte Protokollausgabe
konfigurierbare Protokollstufen
Plattformunabhängiger Entwurf
Erweiterbarer Formatierungsunterstützung
Eingebaute Leistungsmetriken
Unterstützung für benutzerdefinierte Protokollquellen
Geeignet für
Produktionsreife Flutter-Apps
Teams, die eine robuste Protokollierung benötigen
Apps, die plattformübergreifende Protokollierung benötigen
Entwickler, die sich auf Beobachtbarkeit konzentrieren
Projekte, die mit Backend-Logging-Diensten integriert sind
Wartung von großskaligen Anwendungen
Hinweise
Benötigt Konfiguration für optimale Nutzung
Kann die App-Größe leicht erhöhen
Benötigt externe Abhängigkeiten für erweiterte Funktionen
Die Logging-Aufwände sollten in leistungsrelevanten Szenarien überwacht werden
Nicht für einfache Debug-Ausgaben vorgesehen
Am besten mit Log-Aggregationswerkzeugen verwendet
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
Please note that Logger is a class for configuration, while LogWriter is for usage. This way, we provide access only to the necessary methods for logging, namely log, e, and w.
For instance, the following methods will be available to an instance of LogWriter:
And an instance of Logger will have configuration management methods available. It's important to avoid using this class for other purposes, as it could potentially disrupt the configuration.
Starting from version 2.0.0, the logger is no longer a singleton. Now, you need to create an instance of the logger.
RemoteLogger has been removed. Use LogStrategy to create any required strategy.
All notable changes to this project will be documented in this file.
Issues
To report your issues, file directly in the Issues section.
Contribute
If you would like to contribute to the package (e.g. by improving the documentation, fixing a bug or adding a cool new feature), please read our contribution guide first and send us your pull request.
Your PRs are always welcome.
How to reach us
Please feel free to ask any questions about this package. Join our community chat on Telegram. We speak English and Russian.