diff --git a/TimberWinR.ServiceHost/Program.cs b/TimberWinR.ServiceHost/Program.cs index ee96f29..bc51c28 100644 --- a/TimberWinR.ServiceHost/Program.cs +++ b/TimberWinR.ServiceHost/Program.cs @@ -90,7 +90,13 @@ namespace TimberWinR.ServiceHost { TimberWinR.Manager manager = new TimberWinR.Manager(_args.ConfigFile); - var outputRedis = new RedisOutput(new string[] { "tstlexiceapp006.vistaprint.svc", "tstlexiceapp007.vistaprint.svc" }, _cancellationToken); + // logaggregator.vistaprint.svc + + //var outputRedis = new RedisOutput(new string[] { "tstlexiceapp006.vistaprint.svc", "tstlexiceapp007.vistaprint.svc" }, _cancellationToken); + + // var outputRedis = new RedisOutput(new string[] { "prdlexicelgs001.vistaprint.svc" }, _cancellationToken); + var outputRedis = new RedisOutput(new string[] { "logaggregator.vistaprint.svc" }, _cancellationToken); + _nlogListener = new TcpInputListener(_cancellationToken, 5140); outputRedis.Connect(_nlogListener); diff --git a/TimberWinR.ServiceHost/TimberWinR.ServiceHost.csproj b/TimberWinR.ServiceHost/TimberWinR.ServiceHost.csproj index ef66fe9..e94bcd8 100644 --- a/TimberWinR.ServiceHost/TimberWinR.ServiceHost.csproj +++ b/TimberWinR.ServiceHost/TimberWinR.ServiceHost.csproj @@ -32,6 +32,9 @@ 4 + + ..\packages\RapidRegex.Core.1.0.0.0\lib\net40\RapidRegex.Core.dll + diff --git a/TimberWinR.ServiceHost/packages.config b/TimberWinR.ServiceHost/packages.config index a42b6cb..13a6181 100644 --- a/TimberWinR.ServiceHost/packages.config +++ b/TimberWinR.ServiceHost/packages.config @@ -1,4 +1,5 @@  + \ No newline at end of file diff --git a/TimberWinR/Outputs/Redis.cs b/TimberWinR/Outputs/Redis.cs index 47361f5..2672d38 100644 --- a/TimberWinR/Outputs/Redis.cs +++ b/TimberWinR/Outputs/Redis.cs @@ -37,14 +37,16 @@ namespace TimberWinR.Outputs try { RedisClient client = new RedisClient(_redisHosts[_redisHostIndex], _port, _timeout); + _redisHostIndex++; if (_redisHostIndex >= _redisHosts.Length) _redisHostIndex = 0; return client; } - catch (Exception) + catch (Exception ex) { + } numTries++; } @@ -129,9 +131,9 @@ namespace TimberWinR.Outputs } } } - catch(Exception) + catch(Exception ex) { - // Got an error, try the other hosts + LogManager.GetCurrentClassLogger().Error(ex); } } } diff --git a/TimberWinR/TimberWinR.1.0.0.0.nupkg b/TimberWinR/TimberWinR.1.0.0.0.nupkg new file mode 100644 index 0000000..fdd644d Binary files /dev/null and b/TimberWinR/TimberWinR.1.0.0.0.nupkg differ diff --git a/TimberWinR/TimberWinR.nuspec b/TimberWinR/TimberWinR.nuspec new file mode 100644 index 0000000..a135c44 --- /dev/null +++ b/TimberWinR/TimberWinR.nuspec @@ -0,0 +1,22 @@ + + + + TimberWinR + 1.0.0.0 + TimberWinR + efontana + efontana + false + Description + Copyright © 2014 + + + + + + + + + + + \ No newline at end of file diff --git a/TimberWinR/lib/net40/Interop.MSUtil.dll b/TimberWinR/lib/net40/Interop.MSUtil.dll new file mode 100644 index 0000000..a4ba522 Binary files /dev/null and b/TimberWinR/lib/net40/Interop.MSUtil.dll differ diff --git a/TimberWinR/lib/net40/TimberWinR.dll b/TimberWinR/lib/net40/TimberWinR.dll new file mode 100644 index 0000000..6c08525 Binary files /dev/null and b/TimberWinR/lib/net40/TimberWinR.dll differ diff --git a/packages/RapidRegex.Core.1.0.0.0/RapidRegex.Core.1.0.0.0.nupkg b/packages/RapidRegex.Core.1.0.0.0/RapidRegex.Core.1.0.0.0.nupkg new file mode 100644 index 0000000..923f7e8 Binary files /dev/null and b/packages/RapidRegex.Core.1.0.0.0/RapidRegex.Core.1.0.0.0.nupkg differ diff --git a/packages/RapidRegex.Core.1.0.0.0/lib/net40/RapidRegex.Core.dll b/packages/RapidRegex.Core.1.0.0.0/lib/net40/RapidRegex.Core.dll new file mode 100644 index 0000000..e5e975d Binary files /dev/null and b/packages/RapidRegex.Core.1.0.0.0/lib/net40/RapidRegex.Core.dll differ