log method
Logs at RichEdit
logging.Logger
.
Implementation
void log(logging.Level level, String method, [String Function()? msg]) =>
_log.log(level, () {
if (msg != null) {
var msgStr = msg();
return '[hwnd: $hwndIfCreated] $method> $msgStr';
} else {
return '[hwnd: $hwndIfCreated] $method()';
}
});