Debug function

dynamic Function(String s) Debug(
  1. String name
)

Debug(key)

returns a debug(s) function that you can call to optionally print out status/debugging messages

Implementation

Function(String s) Debug(String name) {
  var d = Logger(name);
  return d.log;
}