diff --git a/src/NLog.sln.DotSettings b/src/NLog.sln.DotSettings
index 059ce044ac..7799226a3d 100644
--- a/src/NLog.sln.DotSettings
+++ b/src/NLog.sln.DotSettings
@@ -7,4 +7,10 @@
DO_NOT_SHOWEOFGDC
- MDC
\ No newline at end of file
+ MDC
+ True
+ True
+ True
+ True
+ True
+ True
\ No newline at end of file
diff --git a/src/NLog/Annotations.cs b/src/NLog/Annotations.cs
index 62552e7eba..03807640d7 100644
--- a/src/NLog/Annotations.cs
+++ b/src/NLog/Annotations.cs
@@ -208,7 +208,7 @@ public NotifyPropertyChangedInvocatorAttribute([NotNull] string parameterName)
///
/// If method has single input parameter, it's name could be omitted.
/// Using halt (or void/nothing, which is the same) for method output
- /// means that the methos doesn't return normally (throws or terminates the process).
+ /// means that the methods doesn't return normally (throws or terminates the process).
/// Value canbenull is only applicable for output parameters.
/// You can use multiple [ContractAnnotation] for each FDT row, or use single attribute
/// with rows separated by semicolon. There is no notion of order rows, all rows are checked
diff --git a/src/NLog/Common/InternalLogger.cs b/src/NLog/Common/InternalLogger.cs
index d0e85fda10..809c6500b9 100644
--- a/src/NLog/Common/InternalLogger.cs
+++ b/src/NLog/Common/InternalLogger.cs
@@ -452,7 +452,7 @@ private static void WriteToErrorConsole(string message)
/// A message to write.
///
/// Works when property set to true.
- /// The is used in Debug and Relese configuration.
+ /// The is used in Debug and Relaese configuration.
/// The works only in Debug configuration and this is reason why is replaced by .
/// in DEBUG
///
diff --git a/src/NLog/Conditions/ConditionRelationalExpression.cs b/src/NLog/Conditions/ConditionRelationalExpression.cs
index 32eea0631a..c6dcf02b90 100644
--- a/src/NLog/Conditions/ConditionRelationalExpression.cs
+++ b/src/NLog/Conditions/ConditionRelationalExpression.cs
@@ -177,7 +177,7 @@ private static void PromoteTypes(ref object leftValue, ref object rightValue)
}
///
- /// Promoto to type
+ /// Promotes to type
///
///
///
diff --git a/src/NLog/Config/ConfigurationItemFactory.cs b/src/NLog/Config/ConfigurationItemFactory.cs
index 202cd79bbc..dcd2b87e17 100644
--- a/src/NLog/Config/ConfigurationItemFactory.cs
+++ b/src/NLog/Config/ConfigurationItemFactory.cs
@@ -317,7 +317,7 @@ private void CallPreload(Type type)
var parameters = CreatePreloadParameters(preloadMethod, this);
preloadMethod.Invoke(null, parameters);
- InternalLogger.Debug("Preload succesfully invoked for '{0}'", type.FullName);
+ InternalLogger.Debug("Preload successfully invoked for '{0}'", type.FullName);
}
catch (Exception e)
{
diff --git a/src/NLog/Config/ExceptionRenderingFormat.cs b/src/NLog/Config/ExceptionRenderingFormat.cs
index 9776db2e36..5f208da604 100644
--- a/src/NLog/Config/ExceptionRenderingFormat.cs
+++ b/src/NLog/Config/ExceptionRenderingFormat.cs
@@ -34,7 +34,7 @@
namespace NLog.Config
{
///
- /// Format of the excpetion output to the specific target.
+ /// Format of the exception output to the specific target.
///
public enum ExceptionRenderingFormat
{
diff --git a/src/NLog/Config/Factory.cs b/src/NLog/Config/Factory.cs
index ac1d1e23bb..2d8d04bd31 100644
--- a/src/NLog/Config/Factory.cs
+++ b/src/NLog/Config/Factory.cs
@@ -249,7 +249,7 @@ public void RegisterFuncLayout(string name, FuncLayoutRenderer renderer)
/// True if instance was created successfully, false otherwise.
public override bool TryCreateInstance(string itemName, out LayoutRenderer result)
{
- //first try func renderers, as they should have the possiblity to overwrite a current one.
+ //first try func renderers, as they should have the possibility to overwrite a current one.
if (_funcRenderers != null)
{
FuncLayoutRenderer funcResult;
diff --git a/src/NLog/Config/LoggerNameMatcher.cs b/src/NLog/Config/LoggerNameMatcher.cs
index e84ada3b1e..dfc1a81fa8 100644
--- a/src/NLog/Config/LoggerNameMatcher.cs
+++ b/src/NLog/Config/LoggerNameMatcher.cs
@@ -236,7 +236,7 @@ public override bool NameMatches(string loggerName)
///
/// Defines a that matches with a complex wildcards combinations:
///
- /// '*' means zero or more occurrecnces of any character
+ /// '*' means zero or more occurrences of any character
/// '?' means exactly one occurrence of any character
///
/// used when pattern is a string containing any number of '?' or '*' in any position
diff --git a/src/NLog/Config/XmlLoggingConfiguration.cs b/src/NLog/Config/XmlLoggingConfiguration.cs
index 719a989854..a14a292252 100644
--- a/src/NLog/Config/XmlLoggingConfiguration.cs
+++ b/src/NLog/Config/XmlLoggingConfiguration.cs
@@ -125,7 +125,7 @@ private static XmlReader CreateFileReader(string fileName)
{
fileName = fileName.Trim();
#if __ANDROID__
- //suport loading config from special assets folder in nlog.config
+ //support loading config from special assets folder in nlog.config
if (fileName.StartsWith(AssetsPrefix, StringComparison.OrdinalIgnoreCase))
{
//remove prefix
@@ -597,7 +597,7 @@ private void ConfigureFromFilesByMask(string baseDirectory, string fileMask, boo
#endif
foreach (var file in files)
{
- //note we exclude ourself in ConfigureFromFile
+ //note we exclude our self in ConfigureFromFile
ConfigureFromFile(file, autoReloadDefault);
}
}
diff --git a/src/NLog/Internal/FileAppenders/BaseFileAppender.cs b/src/NLog/Internal/FileAppenders/BaseFileAppender.cs
index 0bd10c1e08..42e400e81f 100644
--- a/src/NLog/Internal/FileAppenders/BaseFileAppender.cs
+++ b/src/NLog/Internal/FileAppenders/BaseFileAppender.cs
@@ -92,7 +92,7 @@ internal set
public DateTime CreationTimeSource { get; private set; }
///
- /// Gets the last time the file associated with the appeander is opened. The time returned is in Coordinated
+ /// Gets the last time the file associated with the appender is opened. The time returned is in Coordinated
/// Universal Time [UTC] standard.
///
/// The time the file was last opened.
@@ -133,7 +133,7 @@ public void Write(byte[] bytes)
public abstract DateTime? GetFileCreationTimeUtc();
///
- /// Gets the length in bytes of the file associated with the appeander.
+ /// Gets the length in bytes of the file associated with the appender.
///
/// A long value representing the length of the file in bytes.
public abstract long? GetFileLength();
diff --git a/src/NLog/Internal/FileAppenders/CountingSingleProcessFileAppender.cs b/src/NLog/Internal/FileAppenders/CountingSingleProcessFileAppender.cs
index b46f55b760..b4c5fcb97b 100644
--- a/src/NLog/Internal/FileAppenders/CountingSingleProcessFileAppender.cs
+++ b/src/NLog/Internal/FileAppenders/CountingSingleProcessFileAppender.cs
@@ -117,7 +117,7 @@ public override void Flush()
}
///
- /// Gets the length in bytes of the file associated with the appeander.
+ /// Gets the length in bytes of the file associated with the appender.
///
/// A long value representing the length of the file in bytes.
public override long? GetFileLength()
diff --git a/src/NLog/Internal/FileAppenders/FileAppenderCache.cs b/src/NLog/Internal/FileAppenders/FileAppenderCache.cs
index 8b8e42735c..fb0505ab36 100644
--- a/src/NLog/Internal/FileAppenders/FileAppenderCache.cs
+++ b/src/NLog/Internal/FileAppenders/FileAppenderCache.cs
@@ -339,7 +339,7 @@ public void CloseAppenders(string reason)
}
///
- /// Close the allocated appenders initialised before the supplied time.
+ /// Close the allocated appenders initialized before the supplied time.
///
/// The time which prior the appenders considered expired
public void CloseAppenders(DateTime expireTime)
diff --git a/src/NLog/Internal/FileAppenders/MutexMultiProcessFileAppender.cs b/src/NLog/Internal/FileAppenders/MutexMultiProcessFileAppender.cs
index 2bbd143ce0..1cdba25f86 100644
--- a/src/NLog/Internal/FileAppenders/MutexMultiProcessFileAppender.cs
+++ b/src/NLog/Internal/FileAppenders/MutexMultiProcessFileAppender.cs
@@ -193,7 +193,7 @@ public override void Flush()
}
///
- /// Gets the length in bytes of the file associated with the appeander.
+ /// Gets the length in bytes of the file associated with the appender.
///
/// A long value representing the length of the file in bytes.
public override long? GetFileLength()
diff --git a/src/NLog/Internal/FileAppenders/RetryingMultiProcessFileAppender.cs b/src/NLog/Internal/FileAppenders/RetryingMultiProcessFileAppender.cs
index b3360053b9..a6ec465962 100644
--- a/src/NLog/Internal/FileAppenders/RetryingMultiProcessFileAppender.cs
+++ b/src/NLog/Internal/FileAppenders/RetryingMultiProcessFileAppender.cs
@@ -102,7 +102,7 @@ public override void Close()
}
///
- /// Gets the length in bytes of the file associated with the appeander.
+ /// Gets the length in bytes of the file associated with the appender.
///
/// A long value representing the length of the file in bytes.
public override long? GetFileLength()
diff --git a/src/NLog/Internal/FileAppenders/SingleProcessFileAppender.cs b/src/NLog/Internal/FileAppenders/SingleProcessFileAppender.cs
index d366227741..4a33d86869 100644
--- a/src/NLog/Internal/FileAppenders/SingleProcessFileAppender.cs
+++ b/src/NLog/Internal/FileAppenders/SingleProcessFileAppender.cs
@@ -137,7 +137,7 @@ public override void Close()
}
///
- /// Gets the length in bytes of the file associated with the appeander.
+ /// Gets the length in bytes of the file associated with the appender.
///
/// A long value representing the length of the file in bytes.
public override long? GetFileLength()
diff --git a/src/NLog/Internal/FileAppenders/UnixMultiProcessFileAppender.cs b/src/NLog/Internal/FileAppenders/UnixMultiProcessFileAppender.cs
index 6acebe8711..d1a5b9581c 100644
--- a/src/NLog/Internal/FileAppenders/UnixMultiProcessFileAppender.cs
+++ b/src/NLog/Internal/FileAppenders/UnixMultiProcessFileAppender.cs
@@ -183,7 +183,7 @@ public override void Close()
}
///
- /// Gets the length in bytes of the file associated with the appeander.
+ /// Gets the length in bytes of the file associated with the appender.
///
/// A long value representing the length of the file in bytes.
public override long? GetFileLength()
diff --git a/src/NLog/Internal/FileAppenders/WindowsMultiProcessFileAppender.cs b/src/NLog/Internal/FileAppenders/WindowsMultiProcessFileAppender.cs
index 26c92cb982..8eb09eb695 100644
--- a/src/NLog/Internal/FileAppenders/WindowsMultiProcessFileAppender.cs
+++ b/src/NLog/Internal/FileAppenders/WindowsMultiProcessFileAppender.cs
@@ -204,7 +204,7 @@ public override void Flush()
}
///
- /// Gets the length in bytes of the file associated with the appeander.
+ /// Gets the length in bytes of the file associated with the appender.
///
/// A long value representing the length of the file in bytes.
public override long? GetFileLength()
diff --git a/src/NLog/Internal/LayoutHelpers-generated.cs b/src/NLog/Internal/LayoutHelpers-generated.cs
index 853848eece..d1c0b4d7d9 100644
--- a/src/NLog/Internal/LayoutHelpers-generated.cs
+++ b/src/NLog/Internal/LayoutHelpers-generated.cs
@@ -67,7 +67,7 @@ public static short RenderShort(this Layout layout, LogEventInfo logEvent, short
short result;
// NumberStyles.Integer is default of Convert.ToInt16
- // CultureInfo.InvariantCulture is backwardscomp.
+ // CultureInfo.InvariantCulture is backwards-compatible.
if (!short.TryParse(rendered, NumberStyles.Integer, CultureInfo.InvariantCulture, out result))
{
InternalLogger.Warn(layoutName + ": parse of value '" + rendered + "' failed, return " + defaultValue);
@@ -101,7 +101,7 @@ public static int RenderInt(this Layout layout, LogEventInfo logEvent, int defau
int result;
// NumberStyles.Integer is default of Convert.ToInt16
- // CultureInfo.InvariantCulture is backwardscomp.
+ // CultureInfo.InvariantCulture is backwards-compatibility.
if (!int.TryParse(rendered, NumberStyles.Integer, CultureInfo.InvariantCulture, out result))
{
InternalLogger.Warn(layoutName + ": parse of value '" + rendered + "' failed, return " + defaultValue);
diff --git a/src/NLog/Internal/NetworkSenders/HttpNetworkSender.cs b/src/NLog/Internal/NetworkSenders/HttpNetworkSender.cs
index 4c929cf94e..436f67e60d 100644
--- a/src/NLog/Internal/NetworkSenders/HttpNetworkSender.cs
+++ b/src/NLog/Internal/NetworkSenders/HttpNetworkSender.cs
@@ -76,7 +76,7 @@ protected override void DoSend(byte[] bytes, int offset, int length, AsyncContin
{
using (var response = webRequest.EndGetResponse(r))
{
- // Response succesfully read
+ // Response successfully read
}
// completed fine
diff --git a/src/NLog/Internal/StringBuilderExt.cs b/src/NLog/Internal/StringBuilderExt.cs
index c489928b0e..7cc88a091f 100644
--- a/src/NLog/Internal/StringBuilderExt.cs
+++ b/src/NLog/Internal/StringBuilderExt.cs
@@ -332,7 +332,7 @@ internal static void Append4DigitsZeroPadded(this StringBuilder builder, int num
}
///
- /// Apend a int type (byte, int) as string
+ /// Append a int type (byte, int) as string
///
internal static void AppendIntegerAsString(this StringBuilder sb, IConvertible value, TypeCode objTypeCode)
{
diff --git a/src/NLog/Internal/XmlHelper.cs b/src/NLog/Internal/XmlHelper.cs
index 7e8684bbee..081cfa6f16 100644
--- a/src/NLog/Internal/XmlHelper.cs
+++ b/src/NLog/Internal/XmlHelper.cs
@@ -214,7 +214,7 @@ internal static string XmlConvertToElementName(string xmlElementName, bool allow
bool includeChr = false;
switch (chr)
{
- case ':': // namespace-delimeter
+ case ':': // namespace-delimiter
if (i != 0 && allowNamespace)
{
allowNamespace = false;
diff --git a/src/NLog/LayoutRenderers/LayoutRenderer.cs b/src/NLog/LayoutRenderers/LayoutRenderer.cs
index 2db14530d2..20fe4b0db6 100644
--- a/src/NLog/LayoutRenderers/LayoutRenderer.cs
+++ b/src/NLog/LayoutRenderers/LayoutRenderer.cs
@@ -258,7 +258,7 @@ public static void Register(string name)
///
/// Register a custom layout renderer.
///
- /// Short-cut for registing to default
+ /// Short-cut for registering to default
/// Type of the layout renderer.
/// Name of the layout renderer - without ${}.
public static void Register(string name, Type layoutRendererType)
@@ -268,7 +268,7 @@ public static void Register(string name, Type layoutRendererType)
}
///
- /// Register a custom layout renderer with a callback function . The callback recieves the logEvent.
+ /// Register a custom layout renderer with a callback function . The callback receives the logEvent.
///
/// Name of the layout renderer - without ${}.
/// Callback that returns the value for the layout renderer.
diff --git a/src/NLog/LayoutRenderers/RegistryLayoutRenderer.cs b/src/NLog/LayoutRenderers/RegistryLayoutRenderer.cs
index d443edd3dc..cfd41eb301 100644
--- a/src/NLog/LayoutRenderers/RegistryLayoutRenderer.cs
+++ b/src/NLog/LayoutRenderers/RegistryLayoutRenderer.cs
@@ -73,7 +73,7 @@ public RegistryLayoutRenderer()
public Layout DefaultValue { get; set; }
///
- /// Require escaping backward slashes in . Need to be backwardscompatible.
+ /// Require escaping backward slashes in . Need to be backwards-compatible.
///
/// When true:
///
diff --git a/src/NLog/LayoutRenderers/Wrappers/XmlEncodeLayoutRendererWrapper.cs b/src/NLog/LayoutRenderers/Wrappers/XmlEncodeLayoutRendererWrapper.cs
index bbab581ab0..c29582d92a 100644
--- a/src/NLog/LayoutRenderers/Wrappers/XmlEncodeLayoutRendererWrapper.cs
+++ b/src/NLog/LayoutRenderers/Wrappers/XmlEncodeLayoutRendererWrapper.cs
@@ -66,7 +66,7 @@ public XmlEncodeLayoutRendererWrapper()
public bool XmlEncode { get; set; }
///
- /// Gets or sets a value indicating whether to tranform newlines (\r\n) into (
)
+ /// Gets or sets a value indicating whether to transform newlines (\r\n) into (
)
///
///
[DefaultValue(false)]
diff --git a/src/NLog/Layouts/Layout.cs b/src/NLog/Layouts/Layout.cs
index c6af980ac4..29a7ac391c 100644
--- a/src/NLog/Layouts/Layout.cs
+++ b/src/NLog/Layouts/Layout.cs
@@ -118,7 +118,7 @@ public static Layout FromString(string layoutText, ConfigurationItemFactory conf
/// Precalculates the layout for the specified log event and stores the result
/// in per-log event cache.
///
- /// Only if the layout doesn't have [ThreadAgnostic] and doens't contain layouts with [ThreadAgnostic].
+ /// Only if the layout doesn't have [ThreadAgnostic] and doesn't contain layouts with [ThreadAgnostic].
///
/// The log event.
///
@@ -291,7 +291,7 @@ internal void PerformObjectScanning()
MutableUnsafe = objectGraphScannerList.Any(item => item.GetType().IsDefined(typeof(MutableUnsafeAttribute), true));
// determine the max StackTraceUsage, to decide if Logger needs to capture callsite
- StackTraceUsage = StackTraceUsage.None; // Incase this Layout should implement IUsesStackTrace
+ StackTraceUsage = StackTraceUsage.None; // In case this Layout should implement IUsesStackTrace
StackTraceUsage = objectGraphScannerList.OfType().DefaultIfEmpty().Max(item => item?.StackTraceUsage ?? StackTraceUsage.None);
_scannedForObjects = true;
@@ -335,7 +335,7 @@ protected virtual void CloseLayout()
///
/// Register a custom Layout.
///
- /// Short-cut for registing to default
+ /// Short-cut for registering to default
/// Type of the Layout.
/// Name of the Layout.
public static void Register(string name)
@@ -348,7 +348,7 @@ public static void Register(string name)
///
/// Register a custom Layout.
///
- /// Short-cut for registing to default
+ /// Short-cut for registering to default
/// Type of the Layout.
/// Name of the Layout.
public static void Register(string name, Type layoutType)
diff --git a/src/NLog/Layouts/LayoutParser.cs b/src/NLog/Layouts/LayoutParser.cs
index 8e081b7e7c..403d10b009 100644
--- a/src/NLog/Layouts/LayoutParser.cs
+++ b/src/NLog/Layouts/LayoutParser.cs
@@ -78,7 +78,7 @@ internal static LayoutRenderer[] CompileLayout(ConfigurationItemFactory configur
}
else
{
- //dont treat \ as escape char and just read it
+ //don't treat \ as escape char and just read it
literalBuf.Append('\\');
}
continue;
diff --git a/src/NLog/LogManager.cs b/src/NLog/LogManager.cs
index 725467964b..341e3c3c6c 100644
--- a/src/NLog/LogManager.cs
+++ b/src/NLog/LogManager.cs
@@ -105,7 +105,7 @@ public static bool ThrowExceptions
///
/// A value of true if exception should be thrown; otherwise, false.
///
- /// This option is for backwards-compatiblity.
+ /// This option is for backwards-compatibility.
/// By default exceptions are not thrown under any circumstances.
///
///
diff --git a/src/NLog/MessageTemplates/ValueFormatter.cs b/src/NLog/MessageTemplates/ValueFormatter.cs
index bb40d19461..f2bdbc6759 100644
--- a/src/NLog/MessageTemplates/ValueFormatter.cs
+++ b/src/NLog/MessageTemplates/ValueFormatter.cs
@@ -42,7 +42,7 @@
namespace NLog.MessageTemplates
{
///
- /// Convert Render or serialize a value, with optionnally backwardscompatible with
+ /// Convert Render or serialize a value, with optionally backwards-compatible with
///
internal class ValueFormatter : IValueFormatter
{
diff --git a/src/NLog/Targets/AsyncTaskTarget.cs b/src/NLog/Targets/AsyncTaskTarget.cs
index d14ed09e5f..b2f6e1d737 100644
--- a/src/NLog/Targets/AsyncTaskTarget.cs
+++ b/src/NLog/Targets/AsyncTaskTarget.cs
@@ -364,7 +364,7 @@ protected override void Dispose(bool disposing)
///
/// Checks the internal queue for the next to create a new task for
///
- /// Used for race-condition validation betweewn task-completion and timeout
+ /// Used for race-condition validation between task-completion and timeout
/// Signals whether previousTask completed an almost full BatchSize
private void TaskStartNext(object previousTask, bool fullBatchCompleted)
{
@@ -589,7 +589,7 @@ private void NotifyTaskCompletion(IList reusableContinuations
}
///
- /// Handles that scheduled task has completed (succesfully or failed), and starts the next pending task
+ /// Handles that scheduled task has completed (successfully or failed), and starts the next pending task
///
/// Task just completed
/// AsyncContinuation to notify of success or failure
diff --git a/src/NLog/Targets/DefaultJsonSerializer.cs b/src/NLog/Targets/DefaultJsonSerializer.cs
index d130be1056..185e79a903 100644
--- a/src/NLog/Targets/DefaultJsonSerializer.cs
+++ b/src/NLog/Targets/DefaultJsonSerializer.cs
@@ -152,7 +152,7 @@ public string SerializeObject(object value, JsonSerializeOptions options)
///
/// The object to serialize to JSON.
/// Write the resulting JSON to this destination.
- /// Object serialized succesfully (true/false).
+ /// Object serialized successfully (true/false).
public bool SerializeObject(object value, StringBuilder destination)
{
return SerializeObject(value, destination, _serializeOptions);
@@ -164,7 +164,7 @@ public bool SerializeObject(object value, StringBuilder destination)
/// The object to serialize to JSON.
/// Write the resulting JSON to this destination.
/// serialisation options
- /// Object serialized succesfully (true/false).
+ /// Object serialized successfully (true/false).
public bool SerializeObject(object value, StringBuilder destination, JsonSerializeOptions options)
{
return SerializeObject(value, destination, options, default(SingleItemOptimizedHashSet