Exemplo n.º 1
0
        public void Log(Exception ex)
        {
            var log = new
            {
                ApplicationName = _configSettings.ApplicationName,
                Data            = GetData(ex),
                Message         = ex.Message,
                StackTrace      = ex.StackTrace
            };

            _webHelperService.HttpPostAsync(_configSettings.LoggingUrl, log);
        }