driverLog top-level property

DriverLogCallback driverLog
read / write

Print the given message to the console.

The first argument is a string representing the source of the message.

The second argument is the message being logged.

This can be set to a different callback to override the handling of log messages from the driver subsystem.

The default implementation prints "$source: $message" to stderr.

Implementation

DriverLogCallback driverLog = (String source, String message) {
  stderr.writeln('$source: $message');
}