패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.0.0

file_lumberdash

로그를 파일 시스템에 출력하는 Lumberdash 패키지입니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
60
좋아요
0
Pub 점수
140

패키지 설치

flutter pub add file_lumberdash

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

FileLumberdash는 애플리케이션 로그를 파일 시스템으로 리디렉션하도록 설계된 Flutter/Dart 패키지로, 디버깅 및 모니터링을 위한 지속적이고 구조화된 로깅을 가능하게 합니다. Lumberdash 로깅 프레임워크와 원활하게 통합되어 Android, iOS, macOS, Windows, Linux 등 여러 플랫폼에서 상세한 로그 항목을 캡처할 수 있도록 해줍니다. 로그는 사용자가 설정할 수 있는 파일 경로에 저장되므로 배포 후 또는 개발 중 앱의 동작을 분석하기가 쉬워집니다. 실시간 콘솔 출력이 충분하지 않은 장시간 실행 애플리케이션에 적합합니다.

사용 사례

  • 생산 문제 디버깅
  • 역사적 로그 데이터 저장
  • 시간이 지남에 따라 앱 동작 모니터링
  • 외부 로그 분석 도구와의 통합
  • 오프라인 디버깅 지원

주요 기능

  • 디스크 파일에 로그를 기록합니다
  • 사용자 정의 로그 파일 경로
  • 크로스 플랫폼 호환성
  • 구조화된 로그 형식
  • Lumberdash 프레임워크와의 통합

적합한 대상

  • 지속적인 로깅이 필요한 개발자
  • 감사 추적을 필요로 하는 팀
  • 콘솔 액세스가 없는 환경에 배포된 응용 프로그램
  • 장기간 실행되는 백그라운드 서비스
  • 로그 보존 정책 준수를 요구하는 앱

고려 사항

  • 일부 플랫폼에서는 파일 시스템 권한이 필요합니다
  • 관리되지 않으면 큰 로그 파일이 발생할 수 있습니다
  • 수동 로그 회전을 권장합니다
  • 고주파 로깅과 성능에 영향을 줄 수 있음
  • 실시간 콘솔 출력을 위한 것이 아님

원본 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.