mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-05 16:15:43 +00:00
12 lines
257 B
Dart
12 lines
257 B
Dart
import 'dart:io';
|
|
|
|
import 'package:logger/logger.dart';
|
|
import 'package:logger/src/outputs/file_output.dart';
|
|
|
|
import 'util.dart';
|
|
|
|
final logger = Logger(
|
|
printer: PrettyPrinter(),
|
|
output: Util.isDesktop() ? FileOutput(file: File('log.txt')) : null,
|
|
);
|