ServerLog.fromLogRecord constructor
ServerLog.fromLogRecord(
- LogRecord record
Implementation
factory ServerLog.fromLogRecord(logging.LogRecord record) => ServerLog((b) {
b.message = record.message;
b.level = Level.valueOf(record.level.name);
b.loggerName = record.loggerName;
b.error = record.error?.toString();
b.stackTrace = record.stackTrace?.toString();
});