Example #1
0
        private void LogError(string message = null, params object[] values)
        {
            if (message.IsPresent())
            {
                try
                {
                    _logger.LogError(message, values);
                }
                catch (Exception ex)
                {
                    _logger.LogError("Error logging {exception}", ex.Message);
                }
            }

            var details = new TokenRequestValidationLog(_validatedRequest);

            _logger.LogError("{details}", details);
        }
Example #2
0
        private void LogSuccess()
        {
            var details = new TokenRequestValidationLog(_validatedRequest);

            _logger.LogInformation("Token request validation success\n{details}", details);
        }