diff --git a/Log4ALA/Log4ALAAppender.cs b/Log4ALA/Log4ALAAppender.cs
index af47871..c9f0291 100644
--- a/Log4ALA/Log4ALAAppender.cs
+++ b/Log4ALA/Log4ALAAppender.cs
@@ -32,11 +32,11 @@ public class Log4ALAAppender : AppenderSkeleton
public string SharedKey { get; set; }
public string LogType { get; set; }
public string AzureApiVersion { get; set; } = ConfigSettings.DEFAULT_AZURE_API_VERSION;
- public int? HttpDataCollectorRetry { get; set; } = ConfigSettings.DEFAULT_HTTP_DATA_COLLECTOR_RETRY;
+ public int HttpDataCollectorRetry { get; set; } = ConfigSettings.DEFAULT_HTTP_DATA_COLLECTOR_RETRY;
public bool LogMessageToFile { get; set; } = ConfigSettings.DEFAULT_LOG_MESSAGE_TOFILE;
public bool DisableInfoLogFile { get; set; } = ConfigSettings.DEFAULT_DISABLE_INFO_APPENDER_FILE;
- public bool? AppendLogger { get; set; } = ConfigSettings.DEFAULT_APPEND_LOGGER;
- public bool? AppendLogLevel { get; set; } = ConfigSettings.DEFAULT_APPEND_LOGLEVEL;
+ public bool AppendLogger { get; set; } = ConfigSettings.DEFAULT_APPEND_LOGGER;
+ public bool AppendLogLevel { get; set; } = ConfigSettings.DEFAULT_APPEND_LOGLEVEL;
public string ErrLoggerName { get; set; }
@@ -44,16 +44,16 @@ public class Log4ALAAppender : AppenderSkeleton
public string InfoAppenderFile { get; set; }
// Size of the internal event queue.
- public int? LoggingQueueSize { get; set; } = ConfigSettings.DEFAULT_LOGGER_QUEUE_SIZE;
- public bool? KeyValueDetection { get; set; } = ConfigSettings.DEFAULT_KEY_VALUE_DETECTION;
- public bool? JsonDetection { get; set; } = ConfigSettings.DEFAULT_JSON_DETECTION;
- public int? BatchSizeInBytes { get; set; } = ConfigSettings.DEFAULT_BATCH_SIZE_BYTES;
+ public int LoggingQueueSize { get; set; } = ConfigSettings.DEFAULT_LOGGER_QUEUE_SIZE;
+ public bool KeyValueDetection { get; set; } = ConfigSettings.DEFAULT_KEY_VALUE_DETECTION;
+ public bool JsonDetection { get; set; } = ConfigSettings.DEFAULT_JSON_DETECTION;
+ public int BatchSizeInBytes { get; set; } = ConfigSettings.DEFAULT_BATCH_SIZE_BYTES;
- public int? BatchNumItems { get; set; } = ConfigSettings.DEFAULT_BATCH_NUM_ITEMS;
- public int? BatchWaitInSec { get; set; } = ConfigSettings.DEFAULT_BATCH_WAIT_SECONDS;
- public int? BatchWaitMaxInSec { get; set; } = ConfigSettings.DEFAULT_BATCH_WAIT_MAX_SECONDS;
- public int? MaxFieldByteLength { get; set; } = ConfigSettings.DEFAULT_MAX_FIELD_BYTE_LENGTH;
- public int? MaxFieldNameLength { get; set; } = ConfigSettings.DEFAULT_MAX_FIELD_NAME_LENGTH;
+ public int BatchNumItems { get; set; } = ConfigSettings.DEFAULT_BATCH_NUM_ITEMS;
+ public int BatchWaitInSec { get; set; } = ConfigSettings.DEFAULT_BATCH_WAIT_SECONDS;
+ public int BatchWaitMaxInSec { get; set; } = ConfigSettings.DEFAULT_BATCH_WAIT_MAX_SECONDS;
+ public int MaxFieldByteLength { get; set; } = ConfigSettings.DEFAULT_MAX_FIELD_BYTE_LENGTH;
+ public int MaxFieldNameLength { get; set; } = ConfigSettings.DEFAULT_MAX_FIELD_NAME_LENGTH;
public string KeyValueSeparator { get; set; } = ConfigSettings.DEFAULT_KEY_VALUE_SEPARATOR;
public string KeyValuePairSeparator { get; set; } = ConfigSettings.DEFAULT_KEY_VALUE_PAIR_SEPARATOR;
@@ -240,21 +240,21 @@ public override void ActivateOptions()
}
log.Inf($"[{this.Name}] - threadPriority:[{ThreadPriority}]", true);
- HttpDataCollectorRetry = configSettings.ALAHttpDataCollectorRetry == null ? HttpDataCollectorRetry : configSettings.ALAHttpDataCollectorRetry;
+ HttpDataCollectorRetry = configSettings.ALAHttpDataCollectorRetry == null ? HttpDataCollectorRetry : (int)configSettings.ALAHttpDataCollectorRetry;
log.Inf($"[{this.Name}] - httpDataCollectorRetry:[{HttpDataCollectorRetry}]", true);
- BatchSizeInBytes = configSettings.ALABatchSizeInBytes == null ? BatchSizeInBytes : configSettings.ALABatchSizeInBytes;
+ BatchSizeInBytes = configSettings.ALABatchSizeInBytes == null ? BatchSizeInBytes : (int)configSettings.ALABatchSizeInBytes;
log.Inf($"[{this.Name}] - batchSizeInBytes:[{BatchSizeInBytes}]", true);
- BatchNumItems = configSettings.ALABatchNumItems == null ? BatchNumItems : configSettings.ALABatchNumItems;
+ BatchNumItems = configSettings.ALABatchNumItems == null ? BatchNumItems : (int)configSettings.ALABatchNumItems;
- BatchWaitInSec = configSettings.ALABatchWaitInSec == null ? BatchWaitInSec : configSettings.ALABatchWaitInSec;
+ BatchWaitInSec = configSettings.ALABatchWaitInSec == null ? BatchWaitInSec : (int)configSettings.ALABatchWaitInSec;
log.Inf($"[{this.Name}] - batchWaitInSec:[{BatchWaitInSec}]", true);
- BatchWaitMaxInSec = configSettings.ALABatchWaitMaxInSec == null ? BatchWaitMaxInSec : configSettings.ALABatchWaitMaxInSec;
+ BatchWaitMaxInSec = configSettings.ALABatchWaitMaxInSec == null ? BatchWaitMaxInSec : (int)configSettings.ALABatchWaitMaxInSec;
log.Inf($"[{this.Name}] - batchWaitMaxInSec:[{BatchWaitMaxInSec}]", true);
- MaxFieldByteLength = configSettings.ALAMaxFieldByteLength == null ? MaxFieldByteLength : configSettings.ALAMaxFieldByteLength;
+ MaxFieldByteLength = configSettings.ALAMaxFieldByteLength == null ? MaxFieldByteLength : (int)configSettings.ALAMaxFieldByteLength;
if(MaxFieldByteLength > ConfigSettings.DEFAULT_MAX_FIELD_BYTE_LENGTH)
{
MaxFieldByteLength = ConfigSettings.DEFAULT_MAX_FIELD_BYTE_LENGTH;
@@ -262,7 +262,7 @@ public override void ActivateOptions()
log.Inf($"[{this.Name}] - maxFieldByteLength:[{MaxFieldByteLength}]", true);
- MaxFieldNameLength = configSettings.ALAMaxFieldNameLength == null ? MaxFieldNameLength : configSettings.ALAMaxFieldNameLength;
+ MaxFieldNameLength = configSettings.ALAMaxFieldNameLength == null ? MaxFieldNameLength : (int)configSettings.ALAMaxFieldNameLength;
if (MaxFieldNameLength > ConfigSettings.DEFAULT_MAX_FIELD_NAME_LENGTH)
{
MaxFieldNameLength = ConfigSettings.DEFAULT_MAX_FIELD_BYTE_LENGTH;
diff --git a/Log4ALA/Properties/AssemblyInfo.cs b/Log4ALA/Properties/AssemblyInfo.cs
index dc8a001..c557362 100644
--- a/Log4ALA/Properties/AssemblyInfo.cs
+++ b/Log4ALA/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.3.5")]
-[assembly: AssemblyFileVersion("2.3.5")]
+[assembly: AssemblyVersion("2.3.6")]
+[assembly: AssemblyFileVersion("2.3.6")]
diff --git a/Log4ALATest.Core/Log4ALATest.Core.csproj b/Log4ALATest.Core/Log4ALATest.Core.csproj
index 68af4c0..efe502f 100644
--- a/Log4ALATest.Core/Log4ALATest.Core.csproj
+++ b/Log4ALATest.Core/Log4ALATest.Core.csproj
@@ -23,7 +23,7 @@
-
+
diff --git a/Log4ALATest/Log4ALATest.csproj b/Log4ALATest/Log4ALATest.csproj
index 0959e35..f638af1 100644
--- a/Log4ALATest/Log4ALATest.csproj
+++ b/Log4ALATest/Log4ALATest.csproj
@@ -33,8 +33,8 @@
4
-
- ..\packages\Log4ALA.2.3.5\lib\net45\Log4ALA.dll
+
+ ..\packages\Log4ALA.2.3.6\lib\net45\Log4ALA.dll
..\packages\log4net.2.0.5\lib\net45-full\log4net.dll
diff --git a/Log4ALATest/packages.config b/Log4ALATest/packages.config
index 3b816d6..03878ad 100644
--- a/Log4ALATest/packages.config
+++ b/Log4ALATest/packages.config
@@ -1,6 +1,6 @@
-
+
diff --git a/NuGet/Log4ALA.Core/Log4ALA.core.nuspec b/NuGet/Log4ALA.Core/Log4ALA.core.nuspec
index ff3c5ad..43e1746 100644
--- a/NuGet/Log4ALA.Core/Log4ALA.core.nuspec
+++ b/NuGet/Log4ALA.Core/Log4ALA.core.nuspec
@@ -3,7 +3,7 @@
Log4ALA.Core
Log4ALA
- 2.3.5
+ 2.3.6
mob
mob
https://ptv-logistics.github.io/Log4ALA/
@@ -11,7 +11,7 @@
false
Log4Net appender for Azure Log Analytics (ALA)... sending data to Azure Log Analytics with the HTTP Data Collector API. The data will also be logged/sent asynchronously for high performance and to avoid blocking the caller thread.
Copyright © 2018 PTV Group
- Fix to remove all leading and trailing white-space characters from custom field names to avoid e.g custom field names with e.g. leading underscores.
+ Fix issue #8 "Problems reading settings from log4net.xml".
diff --git a/NuGet/Log4ALA/Log4ALA.nuspec b/NuGet/Log4ALA/Log4ALA.nuspec
index 9d1c20e..349a182 100644
--- a/NuGet/Log4ALA/Log4ALA.nuspec
+++ b/NuGet/Log4ALA/Log4ALA.nuspec
@@ -3,7 +3,7 @@
Log4ALA
Log4ALA
- 2.3.5
+ 2.3.6
mob
mob
https://ptv-logistics.github.io/Log4ALA/
@@ -11,7 +11,7 @@
false
Log4Net appender for Azure Log Analytics (ALA)... sending data to Azure Log Analytics with the HTTP Data Collector API. The data will also be logged/sent asynchronously for high performance and to avoid blocking the caller thread.
Copyright © 2018 PTV Group
- Fix to remove all leading and trailing white-space characters from custom field names to avoid e.g custom field names with e.g. leading underscores.
+ Fix issue #8 "Problems reading settings from log4net.xml".
diff --git a/NuGet/build.bat b/NuGet/build.bat
index 7326ca5..f3f3939 100644
--- a/NuGet/build.bat
+++ b/NuGet/build.bat
@@ -4,5 +4,5 @@ REM %MSBUILD% build.proj /target:NuGetRestore
REM %MSBUILD% /p:Configuration=Release ..\Log4ALA.sln
REM %MSBUILD% build.proj /target:NuGetPack /property:Configuration=Release;RELEASE=true
REM PackageVersion=4.5.0;PatchVersion=0;PatchCoreVersion=0
-%MSBUILD% build.proj /target:BuildAll /property:Configuration=Release;RELEASE=true;MajorVersion=2;MinorVersion=3;PatchVersion=5
+%MSBUILD% build.proj /target:BuildAll /property:Configuration=Release;RELEASE=true;MajorVersion=2;MinorVersion=3;PatchVersion=6
pause
\ No newline at end of file
diff --git a/NuGet/build.proj b/NuGet/build.proj
index 7e46dfc..8795044 100644
--- a/NuGet/build.proj
+++ b/NuGet/build.proj
@@ -4,7 +4,7 @@
2
3
- 5
+ 6