LoggerPlugin constructor
LoggerPlugin(
- DevbarState _devbar
Implementation
LoggerPlugin(this._devbar) {
_devbar.ui
.addTab(Tab(text: 'Logger'), LoggerList(this), hierarchy: ['Logs']);
_subscription = Logger.root.onRecord.listen((e) {
_allLogs.add(e);
if (_allLogs.length > _maxHistory) {
_allLogs.removeAt(0);
}
_applyFilter();
});
visibles.onListen = _applyFilter;
}