mason_logger 0.1.0-dev.3 copy "mason_logger: ^0.1.0-dev.3" to clipboard
mason_logger: ^0.1.0-dev.3 copied to clipboard

outdated

A reusable Dart logger used by the [Mason CLI](https://github.com/felangel/mason).

example/main.dart

import 'package:mason_logger/mason_logger.dart';

Future<void> main() async {
  final logger = Logger()
    ..info('info')
    ..alert('alert')
    ..err('error')
    ..success('success')
    ..warn('warning')
    ..detail('detail');

  final favoriteAnimal = logger.prompt('What is your favorite animal?\n');
  final done = logger.progress('Displaying progress');
  await Future<void>.delayed(const Duration(seconds: 1));
  done('Done displaying progress!');
  logger.info('Your favorite animal is $favoriteAnimal!');
}
41
likes
0
pub points
97%
popularity

Publisher

verified publisherbrickhub.dev

A reusable Dart logger used by the [Mason CLI](https://github.com/felangel/mason).

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

meta, universal_io

More

Packages that depend on mason_logger