mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Improved app logs
This commit is contained in:
parent
f3ce298994
commit
191bae78bb
8 changed files with 297 additions and 65 deletions
27
lib/models/app_log.dart
Normal file
27
lib/models/app_log.dart
Normal file
|
@ -0,0 +1,27 @@
|
|||
import 'dart:convert';
|
||||
|
||||
class AppLog {
|
||||
final String type;
|
||||
final DateTime dateTime;
|
||||
final String message;
|
||||
final int? statusCode;
|
||||
final String? resBody;
|
||||
|
||||
const AppLog({
|
||||
required this.type,
|
||||
required this.dateTime,
|
||||
required this.message,
|
||||
this.statusCode,
|
||||
this.resBody,
|
||||
});
|
||||
|
||||
Map<String, String> toMap() {
|
||||
return {
|
||||
'type': type,
|
||||
'dateTime': dateTime.toString(),
|
||||
'message': message,
|
||||
'statusCode': statusCode.toString(),
|
||||
'resBody': resBody.toString()
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue