logging icon indicating copy to clipboard operation
logging copied to clipboard

Used the "error" argument for log argument

Open peterweb2005 opened this issue 5 years ago • 0 comments

eg:

    log.finest('now: ', now);

when printing

      if (record.error != null) {
        buffer.write(record.error);
      }

so the problem is i dont know whether it is null or empty string, anyway to

  void finest(message, [dynamic error = '', StackTrace stackTrace]) =>
      log(Level.FINEST, message, error, stackTrace);

make the error default empty string

peterweb2005 avatar Mar 14 '20 22:03 peterweb2005