appflowy-editor/test/new/util/log_util.dart
2023-06-07 10:35:39 +08:00

22 lines
397 B
Dart

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