コード例 #1
0
        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);
            }
        }
コード例 #2
0
 private async Task LogAsync(LogMessage logMessage)
 {
     var disukuLog = DisukuEntityConverter.CovertLog(logMessage);
     await _logger.LogAsync(disukuLog);
 }