LogEntry constructor
Implementation
factory LogEntry({
$core.String? host,
$core.String? level,
$44.Timestamp? time,
$core.String? loggerName,
$core.String? message,
$43.Struct? caller,
$core.String? stack,
$core.Iterable<$43.Struct>? fields,
}) {
final $result = create();
if (host != null) {
$result.host = host;
}
if (level != null) {
$result.level = level;
}
if (time != null) {
$result.time = time;
}
if (loggerName != null) {
$result.loggerName = loggerName;
}
if (message != null) {
$result.message = message;
}
if (caller != null) {
$result.caller = caller;
}
if (stack != null) {
$result.stack = stack;
}
if (fields != null) {
$result.fields.addAll(fields);
}
return $result;
}