搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目

暂无相关数据。