/// <summary>
        /// The appender itself.
        /// </summary>
        /// <param name="loggingEvent">The internal representation of logging events.</param>
        protected override void Append(LoggingEvent loggingEvent)
        {
            var p = new LogglyPayload()
            {
                Level     = loggingEvent.Level.DisplayName,
                Time      = loggingEvent.TimeStamp,
                Machine   = Environment.MachineName,
                Process   = _currentProcess.ProcessName,
                Thread    = loggingEvent.ThreadName,
                Message   = loggingEvent.RenderedMessage,
                Logger    = loggingEvent.LoggerName,
                Request   = new LogglyRequest(System.Web.HttpContext.Current.Request),
                Exception = new LogglyException(loggingEvent.ExceptionObject)
            };

            var client      = new HttpClient();
            var url         = string.Format("{0}{1}{2}", Endpoint, Token, string.IsNullOrWhiteSpace(Tags) ? string.Empty : "/tag/" + Tags);
            var payloadJson = JsonConvert.SerializeObject(p);

            client.PostAsync(url, new StringContent(payloadJson));
        }
        /// <summary>
        /// The appender itself.
        /// </summary>
        /// <param name="loggingEvent">The internal representation of logging events.</param>
        protected override void Append(LoggingEvent loggingEvent)
        {
            var p = new LogglyPayload()
            {
                Level = loggingEvent.Level.DisplayName,
                Time = loggingEvent.TimeStamp,
                Machine = Environment.MachineName,
                Process = _currentProcess.ProcessName,
                Thread = loggingEvent.ThreadName,
                Message = loggingEvent.RenderedMessage,
                Logger = loggingEvent.LoggerName,
                Request = new LogglyRequest(System.Web.HttpContext.Current.Request),
                Exception = new LogglyException(loggingEvent.ExceptionObject)
            };

            var client = new HttpClient();
            var url = string.Format("{0}{1}{2}", Endpoint, Token, string.IsNullOrWhiteSpace(Tags) ? string.Empty : "/tag/" + Tags);
            var payloadJson = JsonConvert.SerializeObject(p);

            client.PostAsync(url, new StringContent(payloadJson));
        }