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

套件詳情v3.0.0

lumberdash

需要日誌嗎?Lumberdash 就是答案!簡單且可擴展的日誌 API,讓您能建立和使用各種日誌,滿足您所有的日誌需求。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1.8萬
喜歡數
59
Pub 分數
140

安裝套件

flutter pub add lumberdash

套件介紹

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

Lumberdash 是一個簡單且可擴展的 Flutter 應用程式日誌 API,專為滿足跨多個平台的多元日誌需求而設計。它提供了一個乾淨、靈活的介面,用於產生可自訂和可擴展的日誌。支援 Android、iOS、Web、macOS、Windows 和 Linux,Lumberdash 讓開發者能有效追蹤應用程式行為、除錯問題並監控效能。其模組化設計允許與各種日誌處理器和輸出格式整合,適用於開發與生產環境。

適用情境

  • 除錯應用程式流程
  • 監控執行時行為
  • 捕獲錯誤和異常
  • 與外部監控工具整合
  • 登入多平台應用
  • 追蹤使用者動作

主要特色

  • 可擴充的日誌架構
  • 跨平台相容性
  • 可自訂的日誌處理器
  • 用於基本和進階記錄的簡單 API
  • 對結構化記錄的支援
  • 透過 pub.dev 實現輕鬆整合

適合對象

  • 需要強大記錄功能的 Flutter 開發人員
  • 建構跨平台應用的團隊
  • 需要自定義日誌輸出的專案
  • 專注於除錯與可觀測性的開發者
  • 具有複雜記錄需求的應用程式

使用建議

  • 需要設定以啟用進階功能
  • 可能需要額外設定以實現日誌持久化
  • 高頻率日誌記錄場景中的效能影響
  • 有限的內建分析或視覺化
  • 依賴外部依賴項以增強功能

原始 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.

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。