flutter_log_service 1.0.0 flutter_log_service: ^1.0.0 copied to clipboard
LogService is a simple Dart-based logging utility that allows you to log messages, errors, and warnings to a text file.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flutter_log_service
With Flutter:
$ flutter pub add flutter_log_service
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
flutter_log_service: ^1.0.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_log_service/Enums/logEnum.dart';
import 'package:flutter_log_service/Models/log_data.dart';
import 'package:flutter_log_service/Models/log_status.dart';
import 'package:flutter_log_service/logservice.dart';