Updates for Regular expressions
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -32,6 +32,9 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="RapidRegex.Core">
|
||||
<HintPath>..\packages\RapidRegex.Core.1.0.0.0\lib\net40\RapidRegex.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="RapidRegex.Core" version="1.0.0.0" targetFramework="net45" />
|
||||
<package id="Topshelf" version="3.1.3" targetFramework="net45" />
|
||||
</packages>
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
TimberWinR/TimberWinR.1.0.0.0.nupkg
Normal file
BIN
TimberWinR/TimberWinR.1.0.0.0.nupkg
Normal file
Binary file not shown.
22
TimberWinR/TimberWinR.nuspec
Normal file
22
TimberWinR/TimberWinR.nuspec
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>TimberWinR</id>
|
||||
<version>1.0.0.0</version>
|
||||
<title>TimberWinR</title>
|
||||
<authors>efontana</authors>
|
||||
<owners>efontana</owners>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>Description</description>
|
||||
<copyright>Copyright © 2014</copyright>
|
||||
<dependencies>
|
||||
<dependency id="csredis" version="1.4.7.1" />
|
||||
<dependency id="Newtonsoft.Json" version="6.0.3" />
|
||||
<dependency id="NLog" version="3.1.0.0" />
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="lib\net40\Interop.MSUtil.dll" target="lib\net40\Interop.MSUtil.dll" />
|
||||
<file src="lib\net40\TimberWinR.dll" target="lib\net40\TimberWinR.dll" />
|
||||
</files>
|
||||
</package>
|
||||
BIN
TimberWinR/lib/net40/Interop.MSUtil.dll
Normal file
BIN
TimberWinR/lib/net40/Interop.MSUtil.dll
Normal file
Binary file not shown.
BIN
TimberWinR/lib/net40/TimberWinR.dll
Normal file
BIN
TimberWinR/lib/net40/TimberWinR.dll
Normal file
Binary file not shown.
BIN
packages/RapidRegex.Core.1.0.0.0/RapidRegex.Core.1.0.0.0.nupkg
vendored
Normal file
BIN
packages/RapidRegex.Core.1.0.0.0/RapidRegex.Core.1.0.0.0.nupkg
vendored
Normal file
Binary file not shown.
BIN
packages/RapidRegex.Core.1.0.0.0/lib/net40/RapidRegex.Core.dll
vendored
Normal file
BIN
packages/RapidRegex.Core.1.0.0.0/lib/net40/RapidRegex.Core.dll
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user