trackit_history 0.0.2 copy "trackit_history: ^0.0.2" to clipboard
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);
}
2
likes
0
points
154
downloads

Publisher

verified publisherunger1984.pro

Weekly Downloads

Trackit logger extension for storing logs in memory

Repository (GitHub)
View/report issues

Topics

#logging #console #cli

License

unknown (license)

Dependencies

trackit

More

Packages that depend on trackit_history