trackit_history 0.0.2 trackit_history: ^0.0.2 copied to clipboard
Trackit logger extension for storing logs in memory
example/trackit_history_example.dart
import 'package:trackit_history/trackit_history.dart';
void main() {
final log = Trackit.create('Test');
Trackit.getInstance().add(TrackitHistory());
log.info('This is a first message');
log.debug('This is a debug message');
final history = Trackit.getInstance().firstWhereType<TrackitHistory>();
history?.list.map((item) => item.message ?? '').forEach(print);
}