搜尋套件、儲存庫與 APP 分類

套件詳情v3.2.0

sentry_lumberdash

將日誌發送到 Sentry 並帶有正確嚴重性級別的 Lumberdash 插件

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
24
喜歡數
3
Pub 分數
140

安裝套件

flutter pub add sentry_lumberdash

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Sentry Lumberdash 是一個 Flutter/Dart 日誌外掛程式,可與 Sentry 結合,自動傳送具有適當嚴重程度的應用程式日誌。它透過將資訊、警告和錯誤等日誌訊息轉送至 Sentry,增強了除錯功能,實現跨多個平台的即時監控與問題追蹤。專為與 Lumberdash 日誌框架無縫使用而設計,確保結構化且具豐富上下文的錯誤報告。非常適合重視可觀測性與快速事件回應的團隊在生產環境中使用。

適用情境

  • 即時日誌監控
  • 生產環境中的錯誤追蹤
  • 跨平台除錯
  • 與現有日誌工作流程整合
  • 增強應用可觀測性

主要特色

  • 自動嚴重等級對應
  • 與 Lumberdash 的無縫整合
  • 多平台支援(Android、iOS、Web、macOS、Windows、Linux)
  • 結構化錯誤報告
  • 所需設定最少

適合對象

  • 使用 Lumberdash 的開發者
  • 專注於應用可靠性的團隊
  • 生產級別的日誌解決方案
  • 跨平台行動與桌面應用
  • 以可觀測性為重點的開發團隊

使用建議

  • 需要 Sentry 帳號和 DSN
  • 依賴於 Lumberdash 日誌框架
  • 在高容量日誌記錄場景中可能會增加網路使用量
  • 不適用於沒有 Sentry 集成的基本記錄

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

lumberdash

Build Status codecov Pub

lumberdash icon

Do you need logs? Lumberdash is the answer! With a simple but powerful logging API, Lumberdash is the easiest way to record logs. And if that is not enough, you can extend its API and create your own custom plugins for your own logging needs.

How it works

Simply putLumberdashToWork with your preferred LumberdashClient, and start logging!

You can get the best of Lumberdash by using plugins! For example, by using the colorize_lumberdash, you could print logs in stdout with colors:

import 'package:lumberdash/lumberdash.dart';
import 'package:colorize_lumberdash/colorize_lumberdash.dart';

void main() {
  putLumberdashToWork(withClients: [ColorizeLumberdash()]);
  logWarning('Hello Warning');
  logFatal('Hello Fatal!');
  logMessage('Hello Message!');
  logError(Exception('Hello Error'));
}

You could also use multiple clients to log to different sources:

import 'package:lumberdash/lumberdash.dart';
import 'package:colorize_lumberdash/colorize_lumberdash.dart';
import 'package:firebase_lumberdash/firebase_lumberdash.dart';

void main() {
  putLumberdashToWork(withClients: [
    ColorizeLumberdash(),
    FirebaseLumberdash(
      firebaseAnalyticsClient: FirebaseAnalytics(),
      environment: 'development',
      releaseVersion: '1.0.0',
    ),
  ]);
  logWarning('Hello Warning');
  logFatal('Hello Fatal!');
  logMessage('Hello Message!');
  logError(Exception('Hello Error'));
}

Plugins officially supported by BMW

How to create a Lumberdash plugin

Add lumberdash to your dependencies, and extend the LumberdashClient. That easy!

You can see the SimpleClient in this package as inspiration.

Maintainers

This project is maintained by BMW Group.

Thank you to the original authors

  • Jorge Coca (@jorgecoca)
  • Felix Angelov (@felangel)
  • Tim Chabot(@tchabot22)

and all contributors.

License

MIT License

Copyright (c) 2019 BMW Technology Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。