Commit d1fb97a0 authored by Stefan Haslinger's avatar Stefan Haslinger

logging

parent 63771196
import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:encrateia/model/model.dart';
import 'package:sqfentity_gen/sqfentity_gen.dart';
// to get something as close as possible to the current method name, use:
// StackTrace.current.toString()
class Log {
Log({
@required String message,
......@@ -13,6 +17,8 @@ class Log {
..method = method
..message = message
..dateTime = DateTime.now();
log(message, name: method);
}
Log._fromDb(this._db);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment