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

패키지 상세v3.0.0

print_lumberdash

로그를 출력하는 데 print()를 사용하는 Lumberdash 플러그인

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
631
좋아요
1
Pub 점수
130

패키지 설치

flutter pub add print_lumberdash

패키지 개요

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

Print Lumberdash는 Flutter용 디버깅 및 로깅 플러그인으로, 표준 print() 함수를 사용하여 로그를 출력합니다. 단순성에 초점을 맞춰 복잡한 설정이나 외부 종속성 없이 개발 워크플로우에 원활하게 통합될 수 있습니다. Android, iOS, Web, macOS, Windows, Linux 등 모든 주요 플랫폼을 지원하며, 앱 개발 중 빠른 진단에 이상적입니다. 패키지는 가볍고 단순한 콘솔 출력에만 집중되어 있어 개발자가 애플리케이션의 동작을 효율적으로 추적할 수 있도록 도와줍니다.

사용 사례

  • 개발 중 빠른 디버깅
  • 프로토타입에서의 간단한 로그 출력
  • 크로스 플랫폼 콘솔 로깅
  • 개발 빌드에서의 실시간 피드백
  • 로그 요구 사항을 충족하기 위한 최소 설정

주요 기능

  • 내장된 print() 함수 사용
  • 모든 플러터 플랫폼을 지원합니다
  • 경량이고 최소한의
  • 추가 구성이 필요하지 않습니다
  • 기존 코드와의 간편한 통합

적합한 대상

  • 간단한 로깅을 원하는 개발자
  • 프로토타이핑 및 테스트 단계
  • 기본 콘솔 출력을 선호하는 팀
  • 최소한의 로깅 요구 사항을 가진 프로젝트
  • 로컬 환경에서의 빠른 디버깅

고려 사항

  • 생산 로깅에 적합하지 않습니다
  • 제한된 형식 옵션
  • 로그 필터링 또는 수준 없음
  • 파일 출력을 지원하지 않습니다
  • 개발 모드에서만 사용하는 것이 가장 좋습니다

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

카테고리

의존성

의존성 목록 2 개

소스 저장소

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

아직 데이터가 없습니다.