You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
276 B
Dart
15 lines
276 B
Dart
|
5 months ago
|
import '../google-analytics.dart';
|
||
|
|
|
||
|
|
class ErrorTracking{
|
||
|
|
|
||
|
|
final GALogger logger;
|
||
|
|
ErrorTracking(this.logger);
|
||
|
|
|
||
|
|
log(String type, {String? error}){
|
||
|
|
logger('errors', parameters: {
|
||
|
|
'error_type' : type ?? 'unknown',
|
||
|
|
'error' : error ?? 'unknown',
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|