private async Task LogAsync(LogMessage logMessage) { var disukuLog = DisukuEntityConverter.CovertLog(logMessage); if (logMessage.Exception is null) { await _logger.LogAsync(disukuLog); } else { await _logger.LogCriticalAsync(disukuLog, logMessage.Exception); } }
private async Task LogAsync(LogMessage logMessage) { var disukuLog = DisukuEntityConverter.CovertLog(logMessage); await _logger.LogAsync(disukuLog); }