rotation_log 0.0.6 copy "rotation_log: ^0.0.6" to clipboard
rotation_log: ^0.0.6 copied to clipboard

logging supported rotation files

Features #

logger support rotation day or lines.

Usage #

import 'package:rotation_log/rotation_log.dart';

final term = RotationLogTerm.term(RotationLogTermEnum.daily);
final logger = RotationLogger(term);

Future main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await logger.init();
  runZonedGuarded(() async {
    runApp(const MyApp());
  }, (error, trace) {
    logger.exception(error, trace);
  });
}