log method

int log()

Emit a log event of the current object

Implementation

int log() {
  final str = toString();
  devtools.log(str);

  // returns the length of the ouput
  return str.length;
}