Skip to content

Commit 844a4cf

Browse files
improve docs (#4097)
1 parent 454058b commit 844a4cf

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

src/NLog/LayoutRenderers/Wrappers/JsonEncodeLayoutRendererWrapper.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ public JsonEncodeLayoutRendererWrapper()
7474
/// <summary>
7575
/// Should forward slashes be escaped? If true, / will be converted to \/
7676
/// </summary>
77+
/// <remarks>
78+
/// If not set explicitly then the value of the parent will be used as default.
79+
/// </remarks>
7780
/// <docgen category="Transformation Options" order="10"/>
7881
[DefaultValue(true)] // TODO NLog 5 change to nullable (with default fallback to false)
7982
public bool EscapeForwardSlash

src/NLog/Layouts/JsonAttribute.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,11 @@ public bool EscapeUnicode
107107
}
108108

109109
/// <summary>
110-
/// Should forward slashes be escaped? If true, / will be converted to \/
110+
/// Should forward slashes be escaped? If true, / will be converted to \/
111111
/// </summary>
112+
/// <remarks>
113+
/// If not set explicitly then the value of the parent will be used as default.
114+
/// </remarks>
112115
/// <docgen category='JSON Attribute Options' order='100' />
113116
[DefaultValue(true)] // TODO NLog 5 change to nullable (with default fallback to false)
114117
public bool EscapeForwardSlash

src/NLog/Layouts/JsonLayout.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ public JsonLayout()
170170
/// <summary>
171171
/// Should forward slashes be escaped? If true, / will be converted to \/
172172
/// </summary>
173+
/// <remarks>
174+
/// If not set explicitly then the value of the parent will be used as default.
175+
/// </remarks>
173176
/// <docgen category='JSON Formating' order='10' />
174177
[DefaultValue(true)] // TODO NLog 5 change to nullable (with default fallback to false)
175178
public bool EscapeForwardSlash

src/NLog/Targets/Wrappers/AutoFlushTargetWrapper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ public class AutoFlushTargetWrapper : WrapperTargetBase
6767
/// <summary>
6868
/// Delay the flush until the LogEvent has been confirmed as written
6969
/// </summary>
70+
/// <remarks>If not explicitly set, then disabled by default for <see cref="BufferingTargetWrapper"/> and AsyncTaskTarget
71+
/// </remarks>
7072
/// <docgen category='General Options' order='10' />
7173
public bool AsyncFlush
7274
{

0 commit comments

Comments
 (0)