22 lines
397 B
Dart
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;
|
|
}
|