rotation_log 0.0.7
rotation_log: ^0.0.7 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);
});
}
copied to clipboard