搜索插件、代码仓与 APP 分类

插件详情v1.3.0

logging

提供用于调试和错误记录的 API,类似于其他语言中的日志记录器,例如 Closure JS Logger 和 java.util.logging.Logger。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
1350万
喜欢数
1010
Pub 分数
160

安装插件

flutter pub add logging

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

日志包为 Dart 应用程序中的调试和错误日志记录提供了一个简单且一致的 API。它受到其他语言中日志框架的启发,使开发者能够以不同严重性级别(例如,详细、信息、警告、严重)发出日志消息。它支持结构化日志记录,并与各种平台(包括移动、Web 和桌面)良好集成。该包轻量级,专为开发和生产调试使用而设计。

适合场景

  • 调试应用程序流程
  • 跟踪运行时错误
  • 监控应用程序行为
  • 捕获用户操作以进行分析
  • 与外部日志服务集成

主要特点

  • 基于严重程度的日志级别
  • 跨平台兼容性
  • 简单直观的 API
  • 支持结构化日志
  • 轻松集成到Flutter应用

适合对象

  • 开发 Flutter 应用的开发者
  • 需要跨平台一致日志记录的团队
  • 需要调试和生产日志记录的应用程序
  • 具有可观测性需求的项目
  • 前端和后端 Dart 代码

使用建议

  • 不适用于高容量生产日志记录
  • 需要手动配置以进行高级路由
  • 无内置日志持久化
  • 开箱即用的筛选选项有限
  • 可能需要为远程日志记录进行额外设置

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

Package Description Issues Version
args Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. issues pub package
async Utility functions and classes related to the 'dart:async' library. issues pub package
characters String replacement with operations that are Unicode/grapheme cluster aware. issues pub package
collection Collections and utilities functions and classes related to collections. issues pub package
convert Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. issues pub package
crypto Implementations of SHA, MD5, and HMAC cryptographic functions. issues pub package
fixnum Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. issues pub package
lints Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. issues pub package
logging Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. issues pub package
os_detect Platform independent OS detection. issues pub package
path A string-based path manipulation library. issues pub package
platform A pluggable, mockable platform information abstraction for Dart. issues pub package
typed_data Utility functions and classes related to the dart:typed_data library. issues pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.

所属分类

源码仓库

使用此插件的项目

所在榜单