Log constructor
Implementation
Log(
{String? key,
String? type,
int? epoch,
String? message,
String? caller}) {
_map["key"] = key ?? newId();
_map["type"] = type ?? "error";
_map["epoch"] = epoch ?? DateTime.now().millisecondsSinceEpoch;
_map["date"] = DateFormat("yyyy-MM-dd HH:mm:ss.sss")
.format(DateTime.fromMillisecondsSinceEpoch(this.epoch));
_map["message"] = message ?? "";
_map["caller"] = caller;
}