*[<Null safety>](https://dart.dev/null-safety)*
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;
}();