ServerLog.fromLogRecord constructor

ServerLog.fromLogRecord(
  1. LogRecord record
)

Implementation

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