appflowy-editor/test/new/util/log_util.dart

22 lines
441 B
Dart

import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:flutter/material.dart';
const bool _enableLog = false;
void activateLog() {
if (!_enableLog) {
return;
}
AppFlowyLogConfiguration()
..handler = debugPrint
..level = AppFlowyEditorLogLevel.all;
}
void deactivateLog() {
if (!_enableLog) {
return;
}
AppFlowyLogConfiguration()
..handler = null
..level = AppFlowyEditorLogLevel.off;
}