public LoggingEntry(Guid id, Exception exception) { Id = id; if (exception != default) { Exception = new LoggingException(exception); } }
public LoggingEntry(Guid id, LoggingDeserializeContext context) { Id = id; LogLevel = (LogLevel)context.br.ReadByte(); EventId = new EventId(context.br.ReadInt32(), context.br.ReadNullableString()); Message = context.br.ReadNullableString(); if (context.br.ReadBoolean()) { Exception = new LoggingException(context); } }