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

套件詳情v0.3.6

mason_logger

Mason CLI(package:mason_cli)使用的可重用 Dart 日誌記錄器。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
198萬
喜歡數
52
Pub 分數
160

安裝套件

flutter pub add mason_logger

套件介紹

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

mason_logger 是一個輕量級、可重用的 Dart 日誌套件,專為 Mason CLI 設計。它提供了一個簡單且一致的介面,用於輸出不同嚴重程度的記錄,例如資訊、警告和錯誤。以清晰度和可擴展性為設計核心,支援多個平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。此日誌器非常適合命令列工具與開發工作流程,這些場景中結構化且易讀的輸出至關重要。它能無縫整合到需要可靠日誌功能卻不希望引入沉重依賴的 Dart 專案中。

適用情境

  • CLI 工具開發
  • 開發環境回饋
  • 腳本中的錯誤追蹤
  • 即時控制台輸出
  • 與建構系統的整合
  • 除錯命令列工作流程

主要特色

  • 日誌級別簡單的 API
  • 跨平台相容性
  • 最小性能開銷
  • 可擴展的設計
  • 一致的輸出格式
  • 由 Mason CLI 自身使用

適合對象

  • Dart 開發人員建構命令列工具
  • 需要結構化控制台日誌的工具
  • 使用 Mason 或類似腳手架系統的專案
  • 優先考慮乾淨、易讀日誌的團隊
  • 尋求輕量級日誌記錄解決方案的開發者

使用建議

  • 最適合命令列應用程式
  • 不適用於生產伺服器記錄
  • 限制為控制台輸出
  • 無內建檔案記錄
  • 需要手動設定才能進階使用
  • 依賴於Mason生態系統慣例

原始 README

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

mason logo

mason coverage License: MIT Powered by Mason


A collection of packages that enable developers to create and consume reusable templates called bricks.

Mason Demo

Packages

Package Pub
mason pub package
mason_api pub package
mason_cli pub package
mason_logger pub package

Quick Start

# 🎯 Activate from https://pub.dev
dart pub global activate mason_cli

# 🚀 Initialize mason
mason init

# 📦 Install your first brick
mason add hello

# 🧱 Use your first brick
mason make hello

Documentation

View the full documentation here.

Video Tutorials

Package of the Week by Flutter Observable Flutter: Building a Mason brick by Flutter
mason (Package of the Week) Observable Flutter: Building a Mason brick
Meet Mason: Flutter Vikings 2022 by Flutter Community Felix Angelov Demos Mason by Very Good Ventures
Meet Mason: Intro to Templating and Custom Code Generation Mason Video Tutorial

Badge

Add a markdown badge to indicate your project is powered by mason → Powered by Mason

[![Powered by Mason](https://img.shields.io/endpoint?url=https%3A%2F%2Ftinyurl.com%2Fmason-badge)](https://github.com/felangel/mason)

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

所在榜單