printMessage method

void printMessage(
  1. Level level,
  2. String message
)

Prints message to stdout or stderr.

Implementation

void printMessage(logging.Level level, String message) {
  var out = (level < logging.Level.SEVERE ? stdout : stderr);
  out.write(message);
}