log method
Create a new log record in this logger.
Implementation
@override
void log(int level, message) {
if (level <= logLevel) {
StackTrace? stackTrace;
if (recordStackTraces) {
stackTrace = StackTrace.current;
}
var record = LogRecord(
message: message,
level: level,
scope: fullName,
stackTrace: stackTrace);
_sink.add(record);
}
}