diff --git a/source/log4net-loggly/LogglyClient.cs b/source/log4net-loggly/LogglyClient.cs index ebbf2f5..efc0e65 100644 --- a/source/log4net-loggly/LogglyClient.cs +++ b/source/log4net-loggly/LogglyClient.cs @@ -44,9 +44,9 @@ public virtual void Send(ILogglyAppenderConfig config, string message) protected virtual HttpWebRequest CreateWebRequest(ILogglyAppenderConfig config, string tag) { - var url = String.Concat(config.RootUrl, config.InputKey); - //adding userAgent as tag in the log - url = String.Concat(url, "/tag/" + tag); + var url = String.Concat(config.RootUrl, config.LogMode, config.InputKey); + //adding userAgent as tag in the log + url = String.Concat(url, "/tag/" + tag); var request = (HttpWebRequest)WebRequest.Create(url); request.Method = "POST"; request.ReadWriteTimeout = request.Timeout = config.TimeoutInSeconds * 1000;