Google is committed to advancing racial equity for Black communities. See how.

log top-level property

Logger log

read / write

The logger instance in which logs will be written.

This logger will connect to the Fuchsia system logger when running on a Fuchsia device and will write to stdout when not. When running on a Fuchsia device logs can be viewed by running fx syslog.

Implementation

Logger log = () {
  _connectToLogWriterIfNeeded();
  print(_warningMessage);

  return Logger.root;
}()